Skip to content

Commit

Permalink
retialer 403 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Dec 7, 2024
1 parent f9fcb07 commit 314137d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions say/crawler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,9 @@ def get_data(self, force):
return

url = self.API_URL_NOT_FRESH % self.dkp
print("url:")
print(url)
api_response = self.call_api(url)
parsed_result = self.parse_result(api_response)

print(parsed_result)
if int(parsed_result["status"]) == 200:
parsed_result = self.parse_result(api_response)
elif parsed_result["status"] == 302 and "fresh" in parsed_result["redirect_url"]["uri"]:
Expand Down

0 comments on commit 314137d

Please sign in to comment.