Skip to main content

python package that process the data dumped by the israeli supermarket

Project description

Israel Supermarket Parsers: Clients to parser the data published by the supermarkets.

This is a parser for ALL the supermarket chains listed in the GOV.IL site.

שקיפות מחירים (השוואת מחירים) - https://www.gov.il/he/departments/legalInfo/cpfta_prices_regulations הגדרת הקבצים שהיו צריכים להיות זמינים באתרים - https://www.nevo.co.il/law_html/law01/501_131.htm

Unit & Integration Tests CodeQL Pylint Publish Docker image Upload Python Package

🤗 Want to support my work?

Buy Me A Coffee

Got a question?

You can email me at erlichsefi@gmail.com

If you think you've found a bug:

  • Create issue in issue tracker to see if it's already been reported
  • Please consider solving the issue by yourself and creating a pull request.

What is il_supermarket_parsers?

A simple access layer to the data the supermarkets publish. You can download the data using https://github.com/OpenIsraeliSupermarkets/israeli-supermarket-parsers.

You only need to run the following code to parse all the data currently shared by the supermarkets and was downloaded using the package above.

from il_supermarket_parsers import ConvertingTask

scraper = ConvertingTask(data_folder="dumps")
scraper.run()

Quick start

il_supermarket_parsers can be installed using pip:

python3 pip install il_supermarket_parsers

If you want to run the latest version of the code, you can install it from the repo directly:

python3 -m pip install -U git+https://github.com/OpenIsraeliSupermarkets/israeli-supermarket-parsers.git
# or if you don't have 'git' installed
python3 -m pip install -U https://github.com/OpenIsraeliSupermarkets/israeli-supermarket-parsers/main

Running Docker

Build yourself:

docker build -t erlichsefi/israeli-supermarket-parsers --target prod .

or pull the existing image from docker hub:

docker pull erlichsefi/israeli-supermarket-parsers:latest

Then running it using:

docker run  -v "./dumps:/usr/src/app/dumps" \
            -v "./outputs:/usr/src/app/outputs" \
            -e ENABLED_PARSERS="BAREKET,YAYNO_BITAN" \
            -e ENABLED_FILE_TYPES="STORE_FILE" \
            -e LIMIT=1 \
            erlichsefi/israeli-supermarket-parsers

Contributing

Help in testing, development, documentation and other tasks is highly appreciated and useful to the project. There are tasks for contributors of all experience levels.

If you need help getting started, don't hesitate to contact me.

Development status

IL SuperMarket Parser is beta software, as far as i see devlopment stoped until new issues will be found.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

il_supermarket_parser-0.0.9.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

il_supermarket_parser-0.0.9-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file il_supermarket_parser-0.0.9.tar.gz.

File metadata

  • Download URL: il_supermarket_parser-0.0.9.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for il_supermarket_parser-0.0.9.tar.gz
Algorithm Hash digest
SHA256 0de46f298166eb1750b4ce884a9bcb04c9a2ce581b11f46da0285dcf284451f0
MD5 7ae135dbd806db4bfd9df61339fadbb1
BLAKE2b-256 d95e2f70eee16ec3c57c075cc9500a55bcde85dfb81aa39560d57ee8c00a4c15

See more details on using hashes here.

File details

Details for the file il_supermarket_parser-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for il_supermarket_parser-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 77fa76c65e81c87a1944b05b0958bf5aef6f67d973d3183954b428837f5f8dfb
MD5 8f1454a5878062cd25555a5621e9275a
BLAKE2b-256 7624f296dda273aa7482792547e6dce8e32d5b94b6c7ef51c18f6ed223f5dc40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page