Category : tweepy

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) ..

Read more

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 ..

Read more

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, ..

Read more