Skip to content

Commit

Permalink
Set amount of tries for scraper requests to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
smessie authored Nov 30, 2023
1 parent 2a56c2f commit 729865e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/scraper/backoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

TIMEOUT = 5 # Time before a request times out
BACKOFF = 0.25 # Try 0.0s, 0.25s, 0.5s, 1s, 2s between requests
AMOUNT = 1 # Amount of request to make before giving up
AMOUNT = 5 # Amount of request to make before giving up


class TimeoutHTTPAdapter(requests.adapters.HTTPAdapter):
Expand Down

0 comments on commit 729865e

Please sign in to comment.