[Python] How can I set a timeout for urllib3 request?

Discussão em 'Python' iniciado por Stack, Agosto 31, 2025.

  1. Stack

    Stack Membro Participativo

    How can I get urllib3 to try to reach a site for 10 seconds and return an error or data if it can't?

    http = urllib3.PoolManager()

    page = http.request('get', link)

    Continue reading...

Compartilhe esta Página