import requests
hearders = {"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 GTB7.1 (.NET CLR 3.5.30729)", "Referer": "http:/
/example.com"}
requests.get("https://www.nseindia.com/)
....
hearders = {"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 GTB7.1 (.NET CLR 3.5.30729)", "Referer": "http:/
/example.com"}
My http get method calls to https://www.nseindia.com is failing with the timeout errors.
Please help me.
I added the headers after doing a seach on stackoverflow.com but it didn’t work.
New contributor
Heisenberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.