A simple webscraper using Beautiful Soup that pulls the top stories from Hacker News. It prints a list of Story objects that contains the title, author, and score for each story.
This utilizes BeautifulSoup!
- BeautifulSoup
- Python 3+
- Requests
- BeautifulSoup
To run this app on your local computer, please follow the below steps:
Clone repository.
$ git clone https://github.com/janetanne/hackernews-webscraper.git
Create and activate a virtual environment.
$ python -m venv .env
$ source .env/bin/activate
Install the dependencies:
$ pip install -r requirements.txt
Run the program.
$ python index.py