Download history stock prices automatically from yahoo finance in python
问题 Is there a way to automatically download historical prices of stocks from yahoo finance or google finance (csv format)? Preferably in Python. 回答1: Short answer: Yes. Use Python's urllib to pull the historical data pages for the stocks you want. Go with Yahoo! Finance; Google is both less reliable, has less data coverage, and is more restrictive in how you can use it once you have it. Also, I believe Google specifically prohibits you from scraping the data in their ToS. Longer answer: This is