matplotlib has a module that receives historical quotes from Yahoo:
>>> from matplotlib.finance import quotes_historical_yahoo >>> from datetime import date >>> from pprint import pprint >>> pprint(quotes_historical_yahoo('IBM', date(2010, 11, 12), date(2010, 11, 18))) [(734088.0, 144.59, 143.74000000000001, 145.77000000000001, 143.55000000000001, 4731500.0), (734091.0, 143.88999999999999, 143.63999999999999, 144.75, 143.27000000000001, 3827700.0), (734092.0, 142.93000000000001, 142.24000000000001, 143.38, 141.18000000000001, 6342100.0), (734093.0, 142.49000000000001, 141.94999999999999, 142.49000000000001, 141.38999999999999, 4785900.0)]
source share