Skip to content

Instantly share code, notes, and snippets.


Andrew andrewwxy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrewwxy on github.
  • I am 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:

#!/usr/bin/env python
Save stock ticker data from Yahoo! Finance to sqlite.
import datetime as d
import sqlite3
import as web
import 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