Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew andrewwxy

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am andrewwxy on github.
  • I am andrewwxy (https://keybase.io/andrewwxy) on keybase.
  • I have a public key whose fingerprint is 903B 198E A15E EC6E 3843 8034 7837 1668 E3CE 415E

To claim this, I am signing this object:

View pandas_finance.py
#!/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
View getting_twitter
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