We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try to read an options chain from yahoo finance with pandas_datareader. Reading the URL fails with b'Forbidden'. I can open the URL in Safari.
pandas_datareader
b'Forbidden'
Do I need to do something special to give Carnets permission to open an URL?
Thanks, Rene
The text was updated successfully, but these errors were encountered:
Carnets and Pandas can open URLs, so I think your problem is specific to Yahoo Finance.
Looking at open issues in pandas_datareader, I see this one, which is very similar: pydata/pandas-datareader#923 There is even a suggested fix:
FB = web.YahooOptions('FB') FB.headers = {'User-Agent': 'Firefox'} print(FB.expiry_dates)
Sorry, something went wrong.
Yes, thanks, setting the user agent works.
No branches or pull requests
I try to read an options chain from yahoo finance with
pandas_datareader
. Reading the URL fails withb'Forbidden'
. I can open the URL in Safari.Do I need to do something special to give Carnets permission to open an URL?
Thanks,
Rene
The text was updated successfully, but these errors were encountered: