This Python script scraps the top 30 ranked news threads of the previous day and their comments from the infamous news forum Hacker News.
Clone the repo by running the following command:
git clone https://github.com/tsuAquila/Hacker-News-Webscrap.git
Install the necessary dependencies by running the following command:
pip install -r requirements.txt
Run the python script scrapper.py
to scrape the news
python3 scrapper.py
python scrapper.py
The scraped news and comments will be outputted as output.json