file path chnages

main
saif 2025-08-04 18:35:13 +05:00
parent 2170cdfc68
commit e4f3652d6d
1 changed files with 3 additions and 1 deletions

View File

@ -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 )