mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-10 14:06:43 +00:00
add retries arg in get_web()
This commit is contained in:
parent
32119535ae
commit
8edad0255b
@ -45,6 +45,7 @@ def get_web(session=None):
|
||||
logger=stdout_logger,
|
||||
cookie_file=os.environ.get("COOKIE_FILE", None),
|
||||
retry_codes=set(int(x) if x else None for x in os.environ.get("RETRY_CODES", "").split(",")),
|
||||
retries=int(os.environ.get("RETRIES", 3)),
|
||||
retry_sleep=int(os.environ.get("RETRY_SLEEP", 0)),
|
||||
ua=ua[os.environ.get("USER_AGENT")] if os.environ.get("USER_AGENT", None) is not None else None
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user