Skip to content

Instantly share code, notes, and snippets.

@foreigner92
Created October 23, 2012 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foreigner92/3935924 to your computer and use it in GitHub Desktop.
Save foreigner92/3935924 to your computer and use it in GitHub Desktop.
import tweepy
from datetime import datetime
from operator import itemgetter
def initApi():
consumer_key = ""
consumer_secret = ""
access_key = ""
access_secret = ""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_key, access_secret)
return tweepy.API(auth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment