From 3aa71f8e1b70d56ae2d2bbba9ea409dde0676c2e Mon Sep 17 00:00:00 2001 From: ehsang Date: Sat, 7 Dec 2024 18:31:52 +0330 Subject: [PATCH] retialer 403 fix --- say/crawler/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/say/crawler/__init__.py b/say/crawler/__init__.py index d05af4b1..cd13e802 100644 --- a/say/crawler/__init__.py +++ b/say/crawler/__init__.py @@ -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}"