From e4f3652d6df71161442317d7bd300be7271ac01c Mon Sep 17 00:00:00 2001 From: saif Date: Mon, 4 Aug 2025 18:35:13 +0500 Subject: [PATCH] file path chnages --- scrapper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 )