denex / requests-with-retries

Doing request with retry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

requests-with-retries

Doing request with retry

Example

with SessionWithRetries() as session:
    response = session.get('http://example.com/')
    print(response.text)

It will try 3 times to connect and 2 time to read

About

Doing request with retry

License:MIT License


Languages

Language:Python 100.0%