/dominos_pizza_eater

:pizza: Automatic download & analyze orders data from https://dominos.ua/en/kyiv/

Primary LanguageJupyter NotebookMIT LicenseMIT

Domino's pizza eater 🍕

I really like pizza but even more I like data analysis. If you feel the same way, automatically extract data about your orders in the Domino's with this script and get the analysis! Quick demo.

Setup

  1. Install Selenium driver
  2. Run commands
git clone https://github.com/alena-bartosh/dominos_pizza_eater.git && cd dominos_pizza_eater/
python3 -m venv .env
echo 'export PATH=$(pwd)/src:$PATH' >> .env/bin/activate
source .env/bin/activate
pip install -r requirements.txt
python3 -m ipykernel install --user --name=.env

Run

(in the virtual environment)

extractor.py --login YOUR_LOGIN --password YOUR_PASSWORD
transformer.py
jupyter notebook ./ipynb/analyzer.ipynb

Usage

extractor.py --help

usage: extractor.py [-h] [--lang] [-b] [--log-level] -l  -p

Script that extracts data from dominos.ua

optional arguments:
  -h, --help        show this help message and exit
  --lang            site and data language
  -b , --browser    webdriver (chrome by default)
  --log-level       debug/info/warning/error

required arguments:
  -l , --login      user's login or email
  -p , --password   user's password

How it works

dominos_pizza_eater