has added Co-Op chain. Extendability to other chain has significantly improved as well.

This commit is contained in:
KorenLazar
2020-12-17 22:48:10 +02:00
parent 4c0eba1771
commit be47a5ad81
10 changed files with 320 additions and 139 deletions

View File

@@ -1,10 +1,10 @@
# Shufersal basic scraping
# Supermarket basic scraping
## Installation
clone:
```cmd script
git clone https://github.com/korenLazar/shufersal-scraping.git
cd shufersal-scraping
git clone https://github.com/korenLazar/supermarket-scraping.git
cd supermarket-scraping
virtualenv venv
venv\bin\activate
pip install -r requirements.txt
@@ -16,17 +16,17 @@ pip install -r requirements.txt
2. virtualenv
## Usage
First, to find your store's id, you can run the following command (assuming you live in Jerusalem):
First, to find your Shufersal store's ID, you can run the following command (assuming you live in Jerusalem):
```cmd script
python main.py --find_store ירושלים
python main.py --find_store ירושלים --chain Shufersal
```
After running the command, you'll be able to see the different stores in Jerusalem with their ids in "stores_ירושלים.log".
After running the command, you'll be able to see the different stores in Jerusalem with their IDs on the screen.
Now, that we have the store's id, we can get its promotions sorted by their update date by running
Now, that we have the store's ID, we can get its promotions sorted by their update date by running
```cmd script
python main.py --promos 5
python main.py --promos 5 --chain Shufersal
```
* We assumed that the store's id is 5.
* We assumed that the store's ID is 5.
Now, you can find the promos in "promos_5.log".
For other documentation and commands, you can run