Code which return error import json import requests url = 'https://www1.nseindia.com' r = requests.get(url) print (r.text) Error Traceback (most recent call last): File "D:\PythonLearn\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen chunked=chunked) File "D:\PythonLearn\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request six.raise_from(e, None) File "<string>", line 2, in raise_from File "D:\PythonLearn\lib\site-packages\urllib3\connectionpool.py", line 383, in _make_request httplib_response = conn.getresponse() File "D:\PythonLearn\lib\http\client.py", line 1331, in getresponse response.begin() File "D:\PythonLearn\lib\http\client.py", line 297, in begin version, status, reason = self._read_status() File "D:\PythonLearn\lib\http\client.py", line 258, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "...