Skip to main content

python package that implement a scraping for israeli supermarket data

Project description

Israel Supermarket Scraper: Clients to download the data published by the supermarkets.

שקיפות מחירים (השוואת מחירים) - https://www.gov.il/he/departments/legalInfo/cpfta_prices_regulations

Test-suite CodeQL Pylint Publish Docker image Upload Python Package

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_scarper?

There are alot of projects in github tring to scrape the supermarket data, must of them are not stable or wasn't updated of a while, it's about time there will be one codebase that those the work completely.

You only need to run the following code to get all the data currently shared by the supermarkets.

from il_supermarket_scarper import MainScrapperRunner

scraper = MainScrapperRunner()
scraper.run()

Please notice! since new files are constantly uploaded by the supermarket to their site, you will only get the current snapshot. In order to keep geting data, you will need to run this code more the one time to get the newly uploaded files.

Quick start

il_supermarket_scarper can be installed using pip:

python3 -m pip install -U il_supermarket_scarper

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

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

Running Docker

The docker is designed to run the scaper every 6 hours, (you change the cron expression if you would like, checkout the file 'crontab'), in every itreation the scraper will collect the files avaliabe to download and check if the file alreay exists before fetching it, either by scaning the dump folder, or checking the mongo.

docker-compose up -d

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 Scraper 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-scraper-0.2.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

il_supermarket_scraper-0.2.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file il-supermarket-scraper-0.2.2.tar.gz.

File metadata

File hashes

Hashes for il-supermarket-scraper-0.2.2.tar.gz
Algorithm Hash digest
SHA256 aef6934df374ec73d0274d724e07c4d5c041023af8b8b3b7968bf1c5fa556829
MD5 e78e9c372a977767c6fdcec7c842be0d
BLAKE2b-256 8854a8511f866ed8c37e80bb23c19f754f665aa45d55b5b01c9bbc1219a3472f

See more details on using hashes here.

File details

Details for the file il_supermarket_scraper-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for il_supermarket_scraper-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df467f21e99fc6e0fac8adadf46ee41c4494562daade6c55f9b6577b9bafe930
MD5 60013cab841e7a86c117ec45ae45eb44
BLAKE2b-256 6b92a7b5e42d0aa417612ad1cbf7b2c0ebb75130cfad39276289c0149fac2b02

See more details on using hashes here.

Supported by

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