Skip to content

Commit

Permalink
remove temporary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sachavakili committed Sep 5, 2020
1 parent e28a912 commit 18fab92
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions wikipedia/wikipedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,13 +735,9 @@ def _wiki_request(params):
wait_time = (RATE_LIMIT_LAST_CALL + RATE_LIMIT_MIN_WAIT) - datetime.now()
time.sleep(int(wait_time.total_seconds()))

print(f"GET request: {params}")

r = requests.get(API_URL, params=params, headers=headers)

if RATE_LIMIT:
RATE_LIMIT_LAST_CALL = datetime.now()

print(f"GET response: {r.json()}")

return r.json()

0 comments on commit 18fab92

Please sign in to comment.