atreadw1492 / yahoo_fin

Scrape stock price history from new (Spring 2017) Yahoo Finance layout
MIT License
292 stars 125 forks source link

Update stock_info.py #57

Closed JMKwins closed 3 years ago

JMKwins commented 3 years ago

yahoo made some changes the 1st of July. Headers are no more sufficient. We must update them to something like: {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} I have tested locally, it works on my machine so I propose the change