This app scrapes IMDB's website to retrieve the top 20 movies, and saves them in a descending order to csv files, based on:
- their original IMDB rating
- an adjusted rating, that takes into account:
- the number of won Oscars (if there are any) as rewards and
- the number of the received votes (if it is remarkably small) as penalties
It can be run locally and by using Docker.
Run the following command from the project root:
pip3 install -r ./requirements.txt
python3 -m src.app
Run the following commands from the project root.
- Build a Docker image:
docker build -t imdb_scraper .
- Run the image:
docker run imdb_scraper
Run the following commands from the project root.
To run all the unit tests
pytest --cov=./tests/unit/
To run all the integration tests
pytest --cov=./tests/integration/