Skip to content

montvid/barbora-delivery-spot-alert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

barbora-delivery-spot-alert

Tool that signals when delivery spot opens

This repository is for educational purposes only.

As a reaction to COVID-19 pandemic a lot of Lithuanian would like to shop online.

Unfortunately most popular online supermarket BARBORA.lt is not able to address rising demand.

This repository contains an example script that could help you to get signal when there are open delivery timeslots.

Instalation

Requires Python > 3

pip install -r requirements.txt

Usage

Get Headers

  1. Visit www.barbora.lt
  2. Enter devtools (F12)
  3. Choose Network tag
  4. Choose a delivery address/pickup in website
  5. (absolete) Check devtools, right click on any line and select "Save all as HAR"
  6. Check devtools, right click request title "deliveries" select "Save request Headers"
  7. Put headers to file (for example "header") in the same directory as main.py

Extract Headers from headers file

Extract headers from har file by running:

python main.py parse_headers "headers.txt"

This will create "path to har headers.txt.json" with all required headers

Then, run the monitoring system

python main.py alarm headers.txt.json"

Everytime script finds a slot it text or beep.

Web app

Version tracked

  • Flask Web app
  • Linux ALSA support
  • MacOs support
  • Header extraction from Request headers.
  • Header extraction from HAR

OS support

  • Windows Beep sound
  • Linux @robertasmurnikovas and @montvid
  • MacOs @sidlauskaslukas

About

Tool that signals when delivery spot opens

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.6%
  • HTML 9.4%