Skip to content

Latest commit

 

History

History
69 lines (61 loc) · 2.81 KB

README.md

File metadata and controls

69 lines (61 loc) · 2.81 KB

How much on takeout

Installation

  1. Have Python 3 installed on your system
  2. Clone this repo
  3. Install a virtual environment with python3 -m venv .venv/
  4. Activate virtualenv with source .venv/bin/activate
  5. Install dependencies with python3 -m pip install -r requirements.txt
  6. Run cp .env.example .env
  7. Add the necessary authorization tokens in the .env file
  8. Run the script with python3 main.py
  9. Be shocked by how much money you spend

How to get tokens/cookies

Glovo

  • URL: https://glovoapp.com
  1. Open Glovo in your browser.
  2. Open Developer Tools (usually accessible via F12 or Ctrl + Shift + I).
  3. Log in with your account.
  4. Go to the Network tab.
  5. Find any request to https://api.glovoapp.com/v3.
  6. Copy the Authorization token from the request headers.
  7. Paste this token into the .env file as GLOVO_AUTH_TOKEN.

Tazz

  • URL: https://tazz.ro
  1. Open Tazz in your browser.
  2. Open Developer Tools and go to the Network tab.
  3. Log in with your account.
  4. Go to the Orders page.
  5. Select the orders request that will be present in the network tab's list, and locate the Cookie header in the request headers.
  6. Copy the entire Cookie header value.
  7. Paste this cookie value into the .env file as TAZZ_COOKIE.

Presto Pizza

  • URL: https://presto-pizza.ro
  1. Open Presto in your browser.
  2. Open Developer Tools and go to the Network tab.
  3. Log in with your account.
  4. Find any request to https://api.presto-pizza.ro/api/v2.
  5. Copy the UUID from the request headers (it will be used as the Authorization token).
  6. Paste this UUID value into the .env file as PRESTO_AUTH_UUID.

Bolt Food

  • URL: https://food.bolt.eu/en-US/history
  1. Open Bolt Food in your browser.
  2. Open Developer Tools and go to the Network tab.
  3. Log in with your account.
  4. Select any request with the following format https://deliveryuser.live.boltsvc.net/deliveryClient and locate the Authorization token in the request headers.
  5. Copy the Authorization token (formatted as Basic ).
  6. Copy the Device Id parameter from the request.
  7. Paste the token into the .env file as BOLT_AUTH_TOKEN.
  8. Paste the device id into the .env file as BOLT_DEVICE_ID.

Jerry's Pizza

  • URL: https://www.jerryspizza.ro/orders
  1. Open Jerry's Pizza in your browser, login if necesary
  2. Open Developer Tools and go to the Network tab.
  3. Go to "Istoric Comenzi"
  4. Select any request with the following format https://app.jerryspizza.ro/api2/index.php/order/all?id=...
  5. From the Authorization header copy the Bearer token
  6. From the X-Api-Key header copy the X-API-KEY
  7. Paste the token into the .env file as JERRYS_AUTH_TOKEN.
  8. Paste the key into the .env file as JERRYS_X_API_KEY.

Special Thanks