Skip to content

Instantly share code, notes, and snippets.

@angadaws
Created August 7, 2020 22:15
Show Gist options
  • Save angadaws/17d2e1f29fd90dd23c986da97c0aac1f to your computer and use it in GitHub Desktop.
Save angadaws/17d2e1f29fd90dd23c986da97c0aac1f to your computer and use it in GitHub Desktop.
import tweepy
# Authenticate to Twitter
auth = tweepy.OAuthHandler("CONSUMER_KEY", "CONSUMER_SECRET")
auth.set_access_token("ACCESS_TOKEN", "ACCESS_TOKEN_SECRET")
# Create API object
api = tweepy.API(auth)
# Create a tweet
api.update_status("Hello Tweepy")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment