(self, hashtag, since_id=None)
return tweets
Search all tweets for a hashtag
Search all tweets for a hashtag
Search all tweets for a hashtag
def get_searched_tweets(self, hashtag, since_id=None):
        """
        Search all tweets for a hashtag
        """
        if self.api is None:
            self._authenticate()

        tweets = []
        if since_id:
            cursor = tweepy.Cursor(self.api.search, q=hashtag, count=100, since_id=since_id)
        else:
            cursor = tweepy.Cursor(self.api.search, q=hashtag, count=100)
        try:
            for item in cursor.items():
                tweets.append(item)
        except tweepy.error.TweepError:
            print("Reached Twitter rate limit")
        return tweets
def get_searched_tweets ( self , hashtag , since_id = None ) : if self . api is None : self . _authenticate ( ) tweets = [ ] if since_id : cursor = tweepy . Cursor ( self . api . search , q = hashtag , count = 100 , since_id = since_id ) else : cursor = tweepy . Cursor ( self . api . search , q = hashtag , count = 100 ) try : for item in cursor . items ( ) : tweets . append ( item ) except tweepy . error . TweepError : print ( "Reached Twitter rate limit" ) return tweets