Skip to content

A simple Python script to web scrape the previous day's top 30 ranked news threads and their comments from hackernews.

License

Notifications You must be signed in to change notification settings

aasishraj/Hacker-News-Webscrap

Repository files navigation

Hacker News Web Scraper

This Python script scraps the top 30 ranked news threads of the previous day and their comments from the infamous news forum Hacker News.

Installation

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

Usage

Run the python script scrapper.py to scrape the news

Linux:

python3 scrapper.py

Windows:

python scrapper.py

Output

The scraped news and comments will be outputted as output.json

About

A simple Python script to web scrape the previous day's top 30 ranked news threads and their comments from hackernews.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages