Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TooManyRedirects: Exceeded 30 redirects. #248

Open
venkatanagasai6 opened this issue Apr 11, 2023 · 11 comments
Open

TooManyRedirects: Exceeded 30 redirects. #248

venkatanagasai6 opened this issue Apr 11, 2023 · 11 comments

Comments

@venkatanagasai6
Copy link


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.

@vishaln90
Copy link

Receiving the same issue since last few days

@anantawasthi
Copy link

++

@kumarudhayac
Copy link

same issue don't know how to overcome kindly resolve as soon as possible

@VipulKavar
Copy link

My script

abc = get_history(symbol='reliance', start=start_date, end=end_date)
print(abc)

Result are in Screenshot

Screenshot (58)

@marc-odp
Copy link

Read other posts

@gauravdattjoshi
Copy link

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.

@marc-odp
Copy link

@tarunteckedge
Copy link

any workaround for this?

@venkatanagasai6
Copy link
Author

any workaround for this?

We do have some other packages like yfinance as an alternative

@alloc7260
Copy link

Use this insted : NSE-HISTORY-SCRAPER

@pratik141
Copy link

created a new project for New NSE API

https://github.com/pratik141/nsedt

Soon add other APIs also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants