Skip to content

Instantly share code, notes, and snippets.

View Sibam-Paul's full-sized avatar
🎯
Focusing

Sibam Paul Sibam-Paul

🎯
Focusing
View GitHub Profile
──(kali㉿kali)-[~/ml-news-article-scraper-example]
└─$ metacall app.js
Enter the News URL:
https://www.nytimes.com/2021/03/23/business/teslas-autopilot-safety-investigations.html
Exception in node_loader_trampoline_load_from_file while loading: [ 'app.js' ] Traceback (most recent call last):
File "/home/kali/ml-news-article-scraper-example/machine_learning_news_scrapper.py", line 138, in similarNews
prediction, article_title, article, url = handlelink(article_link=url)
File "/home/kali/ml-news-article-scraper-example/machine_learning_news_scrapper.py", line 122, in handlelink
job_pac = joblib.load('models/pac.pkl')
──(kali㉿kali)-[~/ml-news-article-scraper-example]
└─$ metacall app.js
Traceback (most recent call last):
File "py_loader_impl_load_from_file_path", line 33, in load_from_path
File "py_loader_impl_load_from_file_path", line 8, in load_from_spec
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/kali/ml-news-article-scraper-example/machine_learning_news_scrapper.py", line 3, in <module>
from newspaper import Article
┌──(kali㉿kali)-[~/ml-news-article-scraper-example]
└─$ metacall pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting beautifulsoup4==4.9.1
Using cached beautifulsoup4-4.9.1-py3-none-any.whl (115 kB)
Collecting bs4==0.0.2
Using cached bs4-0.0.2-py2.py3-none-any.whl (1.2 kB)
Collecting certifi==2025.1.31
Using cached certifi-2025.1.31-py3-none-any.whl (166 kB)
Collecting chardet<4,>=3.0.2
└─$ metacall pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting beautifulsoup4==4.9.1
Using cached beautifulsoup4-4.9.1-py3-none-any.whl (115 kB)
Collecting bs4==0.0.1
Using cached bs4-0.0.1.tar.gz (1.1 kB)
Preparing metadata (setup.py) ... done
Collecting certifi==2020.6.20
Using cached certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
Collecting chardet==3.0.4