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 97a4701 commit 3aa71f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions say/crawler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def __init__(self, url):
def call_api(self, url):
try:
# Run the wget command and capture the output
print("result")
result = subprocess.run(['wget', '-qO-', url], capture_output=True, text=True, check=True)
print(result)
return result.stdout
except subprocess.CalledProcessError as e:
return f"An error occurred: {e}"
Expand Down

0 comments on commit 3aa71f8

Please sign in to comment.