We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5104fe commit e4901c6Copy full SHA for e4901c6
1 file changed
say/crawler/__init__.py
@@ -119,6 +119,7 @@ def __init__(self, url):
119
120
def call_api(self, url):
121
try:
122
+ print(url)
123
with urllib.request.urlopen(url) as response:
124
status_code = response.getcode()
125
content = response.read().decode('utf-8')
@@ -154,7 +155,7 @@ def get_data(self, force):
154
155
url = self.API_URL_NOT_FRESH % self.dkp
156
api_response = self.call_api(url)
157
parsed_result = self.parse_result(api_response)
-
158
+ print(api_response)
159
if int(parsed_result["status"]) == 200:
160
161
elif parsed_result["status"] == 302 and "fresh" in parsed_result["redirect_url"]["uri"]:
0 commit comments