Skip to content Skip to sidebar Skip to footer

Requests-html Httpsconnectionpoolread Timed Out

Trying to send a request to here using requests-html. Here is my code: headers = {'User-agent':'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2

Solution 1:

You can do this with Async

from requests_html import AsyncHTMLSession

s = AsyncHTMLSession()
async def main():
    r = await s.get('https://www.size.co.uk/product/white-fila-v94m-low/119095/')
    await r.html.arender()
    print(r.content)

s.run(main)

Post a Comment for "Requests-html Httpsconnectionpoolread Timed Out"