import tweepy
import time


API_KEY="#"
API_SECRET="#"
ACCESS_TOKEN = "#"
ACCESS_SECRET = "#"



auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)

api = tweepy.API(auth, wait_on_rate_limit=True,
    wait_on_rate_limit_notify=True)

# list
def like(id):
    try:
        api.create_favorite(id)
    except Exception as ex:
        print(ex)

# Create API object

class MyStreamListener(tweepy.StreamListener):
    def __init__(self, api):
        self.replied_tweets = []
        self.api = api

    def on_status(self, status):
        print("==========================================================")
        
        follow_id=(status.user.id)
        message="Hi what's up"
        tweet_id=status.id
        if tweet_id in self.replied_tweets:
            print("already seen this tweet: ", status.text)
        else:
            
            time.sleep(10)

            self.api.update_status(message,in_reply_to_status_id=tweet_id, auto_populate_reply_metadata=True)
            
            
            print("==========================================================")
            self.replied_tweets.append(tweet_id)
        
        if len(self.replied_tweets) >= 1000:
            self.replied_tweets = []
    

if __name__ == "__main__":
    tweets_listener = MyStreamListener(api)
    stream = tweepy.Stream(api.auth, tweets_listener)
    print("streaming...")
    stream.filter(track=['qwerty2020am'])
    print("after stream...")

0fd3c3446b21a56769ccfc2a499e713f51871905
<mask token>


def like(id):
    try:
        api.create_favorite(id)
    except Exception as ex:
        print(ex)


class MyStreamListener(tweepy.StreamListener):

    def __init__(self, api):
        self.replied_tweets = []
        self.api = api

    def on_status(self, status):
        print('==========================================================')
        follow_id = status.user.id
        message = "Hi what's up"
        tweet_id = status.id
        if tweet_id in self.replied_tweets:
            print('already seen this tweet: ', status.text)
        else:
            time.sleep(10)
            self.api.update_status(message, in_reply_to_status_id=tweet_id,
                auto_populate_reply_metadata=True)
            print('==========================================================')
            self.replied_tweets.append(tweet_id)
        if len(self.replied_tweets) >= 1000:
            self.replied_tweets = []


<mask token>

<mask token>
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)
<mask token>


def like(id):
    try:
        api.create_favorite(id)
    except Exception as ex:
        print(ex)


class MyStreamListener(tweepy.StreamListener):

    def __init__(self, api):
        self.replied_tweets = []
        self.api = api

    def on_status(self, status):
        print('==========================================================')
        follow_id = status.user.id
        message = "Hi what's up"
        tweet_id = status.id
        if tweet_id in self.replied_tweets:
            print('already seen this tweet: ', status.text)
        else:
            time.sleep(10)
            self.api.update_status(message, in_reply_to_status_id=tweet_id,
                auto_populate_reply_metadata=True)
            print('==========================================================')
            self.replied_tweets.append(tweet_id)
        if len(self.replied_tweets) >= 1000:
            self.replied_tweets = []


if __name__ == '__main__':
    tweets_listener = MyStreamListener(api)
    stream = tweepy.Stream(api.auth, tweets_listener)
    print('streaming...')
    stream.filter(track=['qwerty2020am'])
    print('after stream...')

<mask token>
API_KEY = '#'
API_SECRET = '#'
ACCESS_TOKEN = '#'
ACCESS_SECRET = '#'
auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)


def like(id):
    try:
        api.create_favorite(id)
    except Exception as ex:
        print(ex)


class MyStreamListener(tweepy.StreamListener):

    def __init__(self, api):
        self.replied_tweets = []
        self.api = api

    def on_status(self, status):
        print('==========================================================')
        follow_id = status.user.id
        message = "Hi what's up"
        tweet_id = status.id
        if tweet_id in self.replied_tweets:
            print('already seen this tweet: ', status.text)
        else:
            time.sleep(10)
            self.api.update_status(message, in_reply_to_status_id=tweet_id,
                auto_populate_reply_metadata=True)
            print('==========================================================')
            self.replied_tweets.append(tweet_id)
        if len(self.replied_tweets) >= 1000:
            self.replied_tweets = []


if __name__ == '__main__':
    tweets_listener = MyStreamListener(api)
    stream = tweepy.Stream(api.auth, tweets_listener)
    print('streaming...')
    stream.filter(track=['qwerty2020am'])
    print('after stream...')

import tweepy
import time
API_KEY = '#'
API_SECRET = '#'
ACCESS_TOKEN = '#'
ACCESS_SECRET = '#'
auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)


def like(id):
    try:
        api.create_favorite(id)
    except Exception as ex:
        print(ex)


class MyStreamListener(tweepy.StreamListener):

    def __init__(self, api):
        self.replied_tweets = []
        self.api = api

    def on_status(self, status):
        print('==========================================================')
        follow_id = status.user.id
        message = "Hi what's up"
        tweet_id = status.id
        if tweet_id in self.replied_tweets:
            print('already seen this tweet: ', status.text)
        else:
            time.sleep(10)
            self.api.update_status(message, in_reply_to_status_id=tweet_id,
                auto_populate_reply_metadata=True)
            print('==========================================================')
            self.replied_tweets.append(tweet_id)
        if len(self.replied_tweets) >= 1000:
            self.replied_tweets = []


if __name__ == '__main__':
    tweets_listener = MyStreamListener(api)
    stream = tweepy.Stream(api.auth, tweets_listener)
    print('streaming...')
    stream.filter(track=['qwerty2020am'])
    print('after stream...')

import tweepy
import time


API_KEY="#"
API_SECRET="#"
ACCESS_TOKEN = "#"
ACCESS_SECRET = "#"



auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)

api = tweepy.API(auth, wait_on_rate_limit=True,
    wait_on_rate_limit_notify=True)

# list
def like(id):
    try:
        api.create_favorite(id)
    except Exception as ex:
        print(ex)

# Create API object

class MyStreamListener(tweepy.StreamListener):
    def __init__(self, api):
        self.replied_tweets = []
        self.api = api

    def on_status(self, status):
        print("==========================================================")
        
        follow_id=(status.user.id)
        message="Hi what's up"
        tweet_id=status.id
        if tweet_id in self.replied_tweets:
            print("already seen this tweet: ", status.text)
        else:
            
            time.sleep(10)

            self.api.update_status(message,in_reply_to_status_id=tweet_id, auto_populate_reply_metadata=True)
            
            
            print("==========================================================")
            self.replied_tweets.append(tweet_id)
        
        if len(self.replied_tweets) >= 1000:
            self.replied_tweets = []
    

if __name__ == "__main__":
    tweets_listener = MyStreamListener(api)
    stream = tweepy.Stream(api.auth, tweets_listener)
    print("streaming...")
    stream.filter(track=['qwerty2020am'])
    print("after stream...")
