ystockquote
ystockquote copied to clipboard
a possible fix to historical quotes
Since things broke when the API changed I wrote this. It relies on the fact that the web page has all the data in json objects. So I pattern match to grab the json fragments for the quotes (so a bit brittle).
I do this instead of the download link b/c the download link is generated via javascript and requires cookie handling... so while the data is better formatted getting to it requires reverse engineering, so brittle in a different way.
so works in python 2.7 but not 3.x