Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.28 KB

README.md

File metadata and controls

42 lines (36 loc) · 1.28 KB

Horoscope Scraper

What is it?

Horoscope Scraper is a Flask application that aggregates daily horoscope readings into a single page.

How does it work?

Horoscope Scraper uses ScrapeIt to retrieve text from various websites that display daily horoscope readings. The config is how the application determines where to go and what text to grab. The application consists only two routes: index and

How do I run it?

Start by installing the application. While in the project root run:

pip3 install -e .[dev]

You can run the Flask server natively by running:

python3 ./horoscope_scraper/app.py

Or you can start the server inside of a Docker container:

docker build -t horoscope-scraper:1.0.0 .
docker run -p 80:5000 horoscope-scraper:1.0.0

After the server is running, navigate to http://localhost/ or http://0.0.0.0/`.

How do I run the tests?

Tests are written with pytest. The tests can be started by running:

pytest 

Okay, but why?

I hypothesized by aggregating daily horoscope readings it would be very easy to point out the inconsistent themes for a single zodiac sign in a day.