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
Scheduled Automatic Testing: The test-suite is scheduled to run every week, so you can see if the supermarket chains has chanced something in their interface and the package will not work probably, status:
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
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.2.8.tar.gz
.
File metadata
- Download URL: il-supermarket-scraper-0.2.8.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40eccf9daeea87c7aade381f45164bde11bf7d5af4a8042189e2c48b2a5b15cc |
|
MD5 | 0feb95565c26b7bb353b6977c8f9db71 |
|
BLAKE2b-256 | 93bb63fa807d1c784b9ca69537f70492185dfddbcf72b029b80035c17e815968 |
File details
Details for the file il_supermarket_scraper-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: il_supermarket_scraper-0.2.8-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f7d3c78d026a57d9902bb33bc2f58710f763fda9fb1e53a366a08a8351f8a9a |
|
MD5 | 5fe72c84a5db4d78d204a006f111cacb |
|
BLAKE2b-256 | c9084d17fb99fe6eedf50209f61e757cd3606a21fde1240c1e4aa78ee5da5150 |