Created
February 16, 2019 19:27
-
-
Save KonradIT/0bd7243ebe8d7b3e231603880acab7cf to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
import sys, os, time | |
import tweepy | |
keys = dict( | |
consumer_key='_YOUR_CONSUMER_KEY', | |
consumer_secret='_YOUR_SECRET_KEY', | |
access_token='_YOUR_ACCESS_TOKEN', | |
access_token_secret='_YOUR_ACCESS_TOKEN_SECRET' | |
) | |
user = "@YOUR_USERNAME" | |
auth = tweepy.OAuthHandler(keys['consumer_key'], keys['consumer_secret']) | |
auth.set_access_token(keys['access_token'], keys['access_token_secret']) | |
api = tweepy.API(auth) | |
def tweet(): | |
message=input("tweet: ") | |
api.update_status(message) | |
time.sleep(1000) | |
if __name__ == "__main__": | |
while 1: | |
tweet() |
I have the same problem (tweet not showing) and it gives me this as an error: https://imgur.com/a/9K2ZaZj
Anything I could've done wrong?This is a tweepy error, try reinstalling via pip
https://cozy-says.anime-girls-are-the.best/3UF0HaW8 I've tried and my application is on all permissions, what happened?
Can you pastebin/message me your code (without api keys) for me to look at?
I've managed to fix it (by creating a new app) but now there is another error - It doesn't show the "Twitter for {insert here}" text
Have you correctly named your twitter application?
…On Tue, 9 Feb 2021 at 14:14, IndraIsSad ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
I have the same problem (tweet not showing) and it gives me this as an
error: https://imgur.com/a/9K2ZaZj
Anything I could've done wrong?
This is a tweepy error, try reinstalling via pip
https://cozy-says.anime-girls-are-the.best/3UF0HaW8 I've tried and my
application is on all permissions, what happened?
Can you pastebin/message me your code (without api keys) for me to look at?
I've managed to fix it (by creating a new app) but now there is another
error - It doesn't show the "Twitter for {insert here}" text
[image: image]
<https://user-images.githubusercontent.com/78311620/107375832-13f5e500-6ae1-11eb-883b-c71405aa3727.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/0bd7243ebe8d7b3e231603880acab7cf#gistcomment-3625488>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH6Z5MJBHXDAM2IBMHMGOD3S6E7MVANCNFSM4HK2CGPA>
.
AAAAAAAAAAAAAAAAAAAAANujQAEAAAAANRMSNOGfQY9BFsG5aeD1XYQHw%2Fg%3DVoL0gLaW3KMZ7vY7nsoqIqZvlIVAEsTd6jeySj8EfOpD6n7gTr
I want my twitter to be IPhone
me as well how do we do this simply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pull the Application Keys from an existing app