Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import tweepy
import sys
# Credentials
consumer_key = "foo"
consumer_secret = "foo"
access_token = "foo"
access_secret = "foo"
# Setting up OAuth
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_secret)
# Creating API instance
api = tweepy.API(auth)
# Tweeting
api.update_with_media(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment