Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # import the tweepy library
- import tweepy
- import config
- cliente = tweepy.Client(
- consumer_key=config.CONSUMER_KEY,
- consumer_secret=config.CONSUMER_SECRET,
- access_token=config.ACCESS_TOKEN,
- access_token_secret=config.ACCESS_TOKEN_SECRET)
- # create a variable called texto_tweet with a string that says "Este Tweet Fue Creado Con GitHub Copilot"
- texto_tweet = "Este Tweet Fue Creado Con GitHub Copilot"
- # send tweet with client.create_tweet method and text as argument. Save the result in a variable called response
- response = cliente.create_tweet(text=texto_tweet)
- print(response)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement