minor changes
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
from mahsaneiHashook import MahsaneiHashook
|
|
||||||
|
|
||||||
|
|
||||||
class Bareket(MahsaneiHashook):
|
|
||||||
pass
|
|
5
chains/bareket.py
Normal file
5
chains/bareket.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from chains.mahsaneiHashook import MahsaneiHashook
|
||||||
|
|
||||||
|
|
||||||
|
class Bareket(MahsaneiHashook):
|
||||||
|
pass
|
5
chains/co_op.py
Normal file
5
chains/co_op.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from chains.mahsaneiHashook import MahsaneiHashook
|
||||||
|
|
||||||
|
|
||||||
|
class CoOp(MahsaneiHashook):
|
||||||
|
pass
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
5
chains/victory.py
Normal file
5
chains/victory.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from chains.mahsaneiHashook import MahsaneiHashook
|
||||||
|
|
||||||
|
|
||||||
|
class Victory(MahsaneiHashook):
|
||||||
|
pass
|
@@ -1,4 +1,4 @@
|
|||||||
from cerberus_web_client import CerberusWebClient
|
from chains.cerberus_web_client import CerberusWebClient
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
|
|
||||||
|
|
5
co_op.py
5
co_op.py
@@ -1,5 +0,0 @@
|
|||||||
from mahsaneiHashook import MahsaneiHashook
|
|
||||||
|
|
||||||
|
|
||||||
class CoOp(MahsaneiHashook):
|
|
||||||
pass
|
|
42
main.py
42
main.py
@@ -1,37 +1,35 @@
|
|||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
import logging
|
import logging
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from bareket import Bareket
|
|
||||||
from mahsaneiHashook import MahsaneiHashook
|
|
||||||
from dor_alon import DorAlon
|
|
||||||
from freshmarket import Freshmarket
|
|
||||||
from hazi_hinam import HaziHinam
|
|
||||||
from keshet import Keshet
|
|
||||||
from promotion import main_latest_promos, get_promos_by_name
|
from promotion import main_latest_promos, get_promos_by_name
|
||||||
from stop_market import StopMarket
|
from store_utils import get_store_id
|
||||||
from store_utils import get_all_deals, get_store_id
|
|
||||||
from tiv_taam import TivTaam
|
|
||||||
from utils import RESULTS_DIRNAME, RAW_FILES_DIRNAME, get_products_prices
|
from utils import RESULTS_DIRNAME, RAW_FILES_DIRNAME, get_products_prices
|
||||||
from supermarket_chain import SupermarketChain
|
from supermarket_chain import SupermarketChain
|
||||||
from shufersal import ShuferSal
|
from chains import (
|
||||||
from co_op import CoOp
|
bareket,
|
||||||
from victory import Victory
|
mahsaneiHashook,
|
||||||
from yohananof import Yohananof
|
dor_alon,
|
||||||
from zol_vebegadol import ZolVebegadol
|
freshmarket,
|
||||||
from rami_levi import RamiLevi
|
hazi_hinam,
|
||||||
from osher_ad import OsherAd
|
keshet,
|
||||||
from pathlib import Path
|
stop_market,
|
||||||
|
tiv_taam,
|
||||||
|
shufersal,
|
||||||
|
co_op,
|
||||||
|
victory,
|
||||||
|
yohananof,
|
||||||
|
zol_vebegadol,
|
||||||
|
rami_levi,
|
||||||
|
osher_ad,
|
||||||
|
)
|
||||||
|
|
||||||
# TODO: fix problem of left-to-right printing
|
# TODO: fix problem of left-to-right printing
|
||||||
|
|
||||||
Path(RESULTS_DIRNAME).mkdir(exist_ok=True)
|
Path(RESULTS_DIRNAME).mkdir(exist_ok=True)
|
||||||
Path(RAW_FILES_DIRNAME).mkdir(exist_ok=True)
|
Path(RAW_FILES_DIRNAME).mkdir(exist_ok=True)
|
||||||
|
|
||||||
chains = ShuferSal, CoOp, ZolVebegadol, RamiLevi, OsherAd, Freshmarket, TivTaam, HaziHinam, Keshet, StopMarket, \
|
chain_dict = {repr(chain): chain() for chain in SupermarketChain.__subclasses__()}
|
||||||
Yohananof, DorAlon, MahsaneiHashook, Bareket, Victory
|
|
||||||
|
|
||||||
chain_dict = {repr(chain): chain() for chain in chains}
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = ArgumentParser()
|
parser = ArgumentParser()
|
||||||
|
@@ -1,5 +0,0 @@
|
|||||||
from mahsaneiHashook import MahsaneiHashook
|
|
||||||
|
|
||||||
|
|
||||||
class Victory(MahsaneiHashook):
|
|
||||||
pass
|
|
Reference in New Issue
Block a user