by chaosmachine · 16y ago · 0 comments
http://finance.yahoo.com/q/hp?s=GOOG
There's a CSV download option.
The base is http://www.google.com/finance/historical?q= then the symbol such as goog then you need to specify a start date by adding the query string "startdate" to the url along with the query string "enddate" and finally you will always want to dump it as a csv: "output=csv"
a note about the dates, It should be formatted in such a way that it is [Month][Day][%2C+][Year] where Month is the first 3 letters of the month.
all together it would look like this: http://www.google.com/finance/historicalq=goog&startdate...
I should note that has been some changes since the last time I've ran the code to scrape the data, but i don't think things have changed dramatically.