Open mrhouzlane opened 2 years ago
Hello,
I had the same problem. Apparently, the API is refusing requests without headers.
My workaround was to add the headers directly to the object.
Also, the ticket FB is returning blank because it got change to 'META'
FB = web.YahooOptions('META')
FB.headers = {'User-Agent': 'Firefox'}
for exp in FB.expiry_dates:
print(exp.isoformat())
It would be nice to have a default header for that request IMO.
Hope it helps :)
Code :
I installed pandas-datareader.
Error :