From 82750285e3e0366a403015ea74913d602e7c61b2 Mon Sep 17 00:00:00 2001 From: saif Date: Tue, 12 Aug 2025 18:43:52 +0500 Subject: [PATCH] add absolute path --- scrapper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapper.py b/scrapper.py index c2a1b6d..5cbb000 100644 --- a/scrapper.py +++ b/scrapper.py @@ -13,13 +13,13 @@ import time import re -with open("marketplaces.json", "r", encoding="utf-8") as f: +with open("/home/ec2-user/keyword_ranking_crawler/marketplaces.json", "r", encoding="utf-8") as f: data = json.load(f) -with open("keywords.json", "r", encoding="utf-8") as f: +with open("/home/ec2-user/keyword_ranking_crawler/keywords.json", "r", encoding="utf-8") as f: keywords = json.load(f) -with open("cookies.json", "r", encoding="utf-8") as f: +with open("/home/ec2-user/keyword_ranking_crawler/cookies.json", "r", encoding="utf-8") as f: cookies_ref = json.load(f) # Or if it's a Python dict already: