Fixed the bug with cerberus_web_client.py by working with Selenium. To login each chain working with it must have a username for login with Selenium. in this mechanism, a path to a gz file is returned instead of url
Added the option to output a prices json file in main.py under --prices-with-promos, where the prices are updated by the latest promotions (under the 'final_price' key, where 'price' represents the price before promotions). Fixed small bug of BinaWebCleint by checking that filename does not contain 'null'. Changed Hierarchy of chains such that it includes the webclients. Added the date to the output filenames to start storing the data over time. Black formatting (according to pip 8 guidelines). Changed the chains_dict in main to a constant one.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from chains.binaproject_web_client import BinaProjectWebClient
|
||||
from supermarket_chain import SupermarketChain
|
||||
|
||||
|
||||
class Maayan2000(BinaProjectWebClient, SupermarketChain):
|
||||
pass
|
||||
class Maayan2000(BinaProjectWebClient):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user