praneeth527 / nptel-dl

A cross-platform python based utility to donwload NPTEL Course videos
MIT License
10 stars 0 forks source link

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='nptel.ac.in', port=443): Max retries exceeded with url: /courses/106106198 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0c0361d490>: Failed to establish a new connection: [Errno 110] Connection timed out')) #1

Closed abpanchal95 closed 3 years ago

abpanchal95 commented 3 years ago

I got a very good connection of 100Mbps don't know what is happening while getting the page using requests module.

abpanchal95 commented 3 years ago

Found this alternative.

response = urllib.request.urlopen(url).read() soup = BeautifulSoup(response, 'lxml')