Skip to main content
100%

Get Yahoo!Finance data on ScraperWiki

✓ Published0🌍 Public
IIanHopkinson
Last edited Apr 8, 2014
Created on Apr 8, 2014

This example shows how to pull historical stock price data from Yahoo! Finance and store it in a SQLite database. The code uses pandas’ `DataReader` with the `yahoo` API to fetch daily trading data for a given ticker symbol over a specified date range. It then resets the DataFrame index, converts the date column to ISO format, and writes the result to a table using `pandas.io.sql.write_frame` with a SQLite connection. The script demonstrates a straightforward data pipeline from an online financial API to local relational storage, using only the pandas and sqlite3 libraries.

AI-generated description

Similar vizzes