It was successful to bring up the ment tagged on my account. The coding used "api.ments_timeline". I want to bring information on the thread that the mention has. I use Python and Twppy. There is a thread in the picture. My account is tagged in the last mention. The mention can be brought. However, the ..
i’m using tweepy to monitor a user and i’m using the stream element, but i got this error AttributeError: module ‘tweepy.streaming’ has no attribute ‘StreamListener’ this are the import: import tweepy from tweepy import streaming i also tried importing: from tweepy.streaming import Stream this is my code: class MyStreamListener(tweepy.streaming.StreamListener): def on_status(self, status): webhook.send(status.text) # SMS.send(status.text) ..
I’m making a bot that prints the tweets from a specific user using the user_timeline but it gives me this error when i run it. TypeError: user_timeline() takes 1 positional argument but 2 were given This is my full code, obviously i deleted the keys and tokens # import the module import tweepy # assign ..
I have over 1M tweets that I need to screen and I need to check if they have been deleted or not. And I have their URLs, is there a way to use Twitter API to check if the tweets have been deleted or not? also, I have the correspondent list of users, can I ..
I’m trying to make a function to delete the last 5 DMs sent in a project I’m working on, but I can only get all DMs sent which reaches the rate limit, therefore forcing Tweepy to wait over 30 seconds. Code: import tweepy CONSUMER_KEY = ‘private’ CONSUMER_SECRET = ‘private’ ACCESS_KEY = ‘private’ ACCESS_SECRET = ‘private’ ..
This is my first question here, so let me know if you need me to add anything. I have a bot on twitter using tweepy that tweets phrases from a book. When I have a phrase with < 280 characters, I tweet it. If my phrase has > 280 characters, I have a method that ..
I am attempting to build a twitter bot that performs a picture framing & matting calculations. And, so, for example, I’m wanting the exchange to go like this: TwitterUser: @TwitterBot calculator TwitterBot: Hi, @TwitterUser, what would you like to calculate? A. Frame Size B. Matting Size TwitterUser: Frame Size TwitterBot: Enter the width and height ..
Summary Hi, I am trying to run Client Socket and Server Socket at once. As I know, the Server socket should be run first. then, It is listening until got requested. So I can’t imagine how I can make it run at "main.py" only. Situation I wanted to make a flow from Twitter to Spark ..
I am trying to collect tweets from a large list of tweet IDs. I’ve written the following loop, but it does not seem to work correctly: def test_lookup_tweets2(smaller_rand_id_list, api): test_full_tweets2 =  tweet_count = len(smaller_rand_id_list) try: for index, i in enumerate(smaller_rand_id_list): try: test_full_tweets2.extend( api.lookup_statuses(id=rate_test_list) ) except: continue except: if tweepy.TweepyException: print ("Not working, stopping…") Essentially, ..
I’m building a twitter bot using tweepy. But when I’m testing it, I try to retweet a test mention that I did, but I get an unauthorized 401 error. When getting timeline informations or just printing the mention ID/content, everything is fine, but when I try to retweet it, it raises 401: I also changed ..