/hackernews-webscraper

A simple webscraper using Beautiful Soup that pulls the title, author, and number of votes for the front page of Hacker News.

Primary LanguagePython

hackernews-webscraper 📝

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!

Table of Contents 📑

Built with 💻

  • BeautifulSoup

Getting Started 🛠

Requirements:

  • 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