Skip to content

Instantly share code, notes, and snippets.

@aguhcel
Last active April 4, 2020 21:37
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 aguhcel/3731fca740a0355775559fdf886fbb13 to your computer and use it in GitHub Desktop.
Save aguhcel/3731fca740a0355775559fdf886fbb13 to your computer and use it in GitHub Desktop.
Empezando con tweepy
import tweepy
# Acceso a Twitter
auth = tweepy.OAuthHandler("consumer_key", "consumer_secret")
auth.set_access_token("access_token", "access_token_secret")
# Creando el objeto API
api = tweepy.API(auth)
# Creamos un tweet
api.update_status("Vamos por ese bot que tanto queria. #Tweepy #Python #Learn")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment