Skip to content

Scrape pizza availability of a Smart Pizza Machine by API Tech

License

Notifications You must be signed in to change notification settings

robbi5/smart-pizza-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Pizza Scraper

This small python script scrapes the pizza availability of a Smart Pizza Machine by API Tech into an sqlite database. Even if the company has API in their name, sadly there isn't a hint for an obvious API endpoint - so I had to regress to scraping html again.

To use (with python>= 3.6):

pip install -r requirements.txt
cp .env.sample .env
# edit .env (to set MACHINE_ID)
python scrape.py

To get the MACHINE_ID, open https://application.smart-machine.fr, press "Continue as Guest" and use the map. When you click on your relevant pin on the map, look for the /carte/detailCarte request in your browser devtools. idMachine is the relevant form data key.

About

Scrape pizza availability of a Smart Pizza Machine by API Tech

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages