A simple program to view deals on Jumia.
First create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Then run the application using commands in the Makefile
, this should work under a Linux or WSL environment:
# scrape data from Jumia
make scrape_data
# view the scraped data on `localhost:5050`
make run
The scraped data is put in the file jumia_deals.db
under src/jumia_deals_viewer
.
Build the image using the Dockerfile
:
docker build -t jumia_deals_viewer .
Run the image using the Dockerfile
:
docker run -p 5050:5050 jumia_deals_viewer