python package that implement a scraping for israeli supermarket data
Project description
Israel Supermarket Scraper: Clients to download the data published by the supermarkets.
This is a scraper for ALL the supermarket chains listed in the GOV.IL site.
שקיפות מחירים (השוואת מחירים) - https://www.gov.il/he/departments/legalInfo/cpfta_prices_regulations
🤗 Want to support my work?
Daily Automatic Testing
The test suite is scheduled to run daily, so you can see if the supermarket chains have changed something in their interface and the package will not work properly.
Notice:
- Berekt and Quik are flaky! They will not fail the testing framework, but you can still use them.
- Some of the scrapers sites are blocked from being accessed from outside of Israel.
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 a lot of projects in GitHub trying to scrape the supermarket data, but most of them are not stable or haven't been updated for a while, it's about time there will be one codebase that does 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 getting data, you will need to run this code more than one time to get the newly uploaded files.
Quick start
il_supermarket_scarper can be installed using pip:
python3 pip install israeli-supermarket-scraper
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-scarpers.git
# or if you don't have 'git' installed
python3 -m pip install -U https://github.com/OpenIsraeliSupermarkets/israeli-supermarket-scarpers/main
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 iteration the scraper will collect the files available to download and check if the file already exists before fetching it, either by scanning the dump folder, or checking the mongo.
docker-compose up -d
or if you want to use the existing image from docker hub:
docker pull erlichsefi/israeli-supermarket-scarpers:latest
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file il_supermarket_scraper-0.4.9.tar.gz
.
File metadata
- Download URL: il_supermarket_scraper-0.4.9.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a578f1db6436a9b86aa554fe54b84100cdc6d0ac7fdebf809df93b218cd37256 |
|
MD5 | 74dd1f1b92b585f1f598ec1553e770a0 |
|
BLAKE2b-256 | c6c6c7e3e9b9ccc24dc06be74c8b7cd2e55696d99c2fc14d49307f964a05b068 |
File details
Details for the file il_supermarket_scraper-0.4.9-py3-none-any.whl
.
File metadata
- Download URL: il_supermarket_scraper-0.4.9-py3-none-any.whl
- Upload date:
- Size: 61.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf609a1db1e16797962badb93a94acaeca56675e981c37334bf2b0805a22b712 |
|
MD5 | 56befc7030231a1c813f483a47507dbe |
|
BLAKE2b-256 | d5a66da4a663d4168c1fc9230be32d62fbad87e9b297969191bedef9a2df0e61 |