file path chnages
parent
2170cdfc68
commit
e4f3652d6d
|
@ -17,6 +17,8 @@ with open("cookies.json", "r", encoding="utf-8") as f:
|
||||||
# Or if it's a Python dict already:
|
# Or if it's a Python dict already:
|
||||||
marketplaces = data["marketplaces"]
|
marketplaces = data["marketplaces"]
|
||||||
|
|
||||||
|
BASE_PATH= '/mnt/AmazonReports/Amazon/keyword_ranking'
|
||||||
|
|
||||||
|
|
||||||
def get_driver():
|
def get_driver():
|
||||||
options = Options()
|
options = Options()
|
||||||
|
@ -93,7 +95,7 @@ def get_amazon_ranks(url, marketplace, keyword):
|
||||||
except:
|
except:
|
||||||
continue
|
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 )
|
save_ranking(ranks, file_path )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue