Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.29 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.29 KB

Grocy dutch supermarkets product scraper

These are two Python script that connect with the dutch supermarket Jumbo.com or ah.nl. It uses the python package SupermarktConnector from Bart Machielsen for this. The scripts download the product information from the API's. It then post this information to Grocy .

Getting started

  1. git clone [email protected]:PaulVerhoeven1/grocy-dutch-supermarket.git; cd grocy-dutch-supermarket
  2. pip3 install -r requirements.txt
  3. chmod +x *.py
  4. cp .env_example .env
  5. Edit the configration in the .env file.

How to use this script

Run the script with as argument the EAN / Barcode, example:

./jumbo-grocy.py 8710391936834
./ah-grocy.py 8710391936834

Todo

  • Add the possiblity to use arguments with the script.
  • Merging AH and Jumbo scripts into one file.
  • Check if a product already exists within Grocy (based on EAN / Barcode)
  • Getting more information from the Jumbo API Example
  • Add logging.
  • Add try and except blocks.
  • Creating a Dockerfile to run the script within a container.