Open venkatanagasai6 opened 1 year ago
Receiving the same issue since last few days
++
same issue don't know how to overcome kindly resolve as soon as possible
abc = get_history(symbol='reliance', start=start_date, end=end_date) print(abc)
Read other posts
It's mainly because the package uses NSE's old website URLs. However, those URLs no longer work as the NSE website got updated. It will take time for this issue to be resolved.
New website URL : https://www.niftyindices.com/reports/historical-data
any workaround for this?
any workaround for this?
We do have some other packages like yfinance as an alternative
Use this insted : NSE-HISTORY-SCRAPER
TooManyRedirects Traceback (most recent call last) in <cell line: 1>()
----> 1 get_history(symbol="SBIN", start=date(2015,1,1), end=date(2015,1,31))
8 frames /usr/local/lib/python3.9/dist-packages/requests/sessions.py in resolve_redirects(self, resp, req, stream, timeout, verify, cert, proxies, yield_requests, **adapter_kwargs) 164 165 if len(resp.history) >= self.max_redirects: --> 166 raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp) 167 168 # Release the connection back into the pool.
TooManyRedirects: Exceeded 30 redirects.