Last active
April 4, 2020 21:37
-
-
Save aguhcel/3731fca740a0355775559fdf886fbb13 to your computer and use it in GitHub Desktop.
Empezando con tweepy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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