This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Save stock ticker data from Yahoo! Finance to sqlite. | |
""" | |
import datetime as d | |
import sqlite3 | |
import pandas.io.data as web | |
import pandas.io.sql as sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from TwitterSearch import * | |
import csv | |
def get_tweets(query, max = 2000): | |
# takes a search term (query) and a max number of tweets to find | |
# gets content from twitter and writes it to a csv bearing the name of your query | |
i = 0 | |
search = query |