Skip to content

Python application that searches for product infromation with the Jumbo.com or AH.nl api to download product information and posting those information to the self-hosted grocery management solution Grocy.

Notifications You must be signed in to change notification settings

PaulVerhoeven1/grocy-dutch-supermarket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python application that searches for product infromation with the Jumbo.com or AH.nl api to download product information and posting those information to the self-hosted grocery management solution Grocy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published