diff --git a/scrapper.py b/scrapper.py index 180b818..e19e5c0 100644 --- a/scrapper.py +++ b/scrapper.py @@ -17,6 +17,8 @@ with open("cookies.json", "r", encoding="utf-8") as f: # Or if it's a Python dict already: marketplaces = data["marketplaces"] +BASE_PATH= '/mnt/AmazonReports/Amazon/keyword_ranking' + def get_driver(): options = Options() @@ -93,7 +95,7 @@ def get_amazon_ranks(url, marketplace, keyword): except: continue - file_path = f"{int(time.time() * 1000)}-{marketplace}-{keyword}.json" + file_path = f"{BASE_PATH}/{int(time.time() * 1000)}-{marketplace}-{keyword}.json" save_ranking(ranks, file_path )