May-10-2020, 09:39 AM
""requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.python.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x039F1418>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))""
I am getting the above error, while running the below mentioned code.please help to fix this.
I am getting the above error, while running the below mentioned code.please help to fix this.
import requests r=requests.get('https://www.python.org/') print(r)