Skip to content

Instantly share code, notes, and snippets.

@akdyounger
Created September 13, 2013 01:11
Show Gist options
  • Select an option

  • Save akdyounger/6545821 to your computer and use it in GitHub Desktop.

Select an option

Save akdyounger/6545821 to your computer and use it in GitHub Desktop.
Basic tweeting code.
import sys
import tweepy
CONSUMER_KEY = 'Cant show this part'
CONSUMER_SECRET = 'Cant show this part'
ACCESS_KEY = 'Cant show this part'
ACCESS_SECRET = 'Cant show this part'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
api.update_status(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment