You can use this script to quickly receive Stories/Links in your terminal without using a web browser, that can help you save time.
This script collects articles from Hacker News that have received more than 100 hacker news points. For data scraping, we'll be utilising Beautiful Soups.
run
setup.bat
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python scrape.py
Using the script
- Run the command
python scrape.py
- The script will now prompt you for the desired number of pages to scrape.
- Be moral and ethical, don't scrape more than required. This may cause unnecessary burden on Hackernews Servers.
- Enjoy!