Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python2
- import tweepy
- import time
- lastId = None
- consumer_key=""
- consumer_secret=""
- access_token=""
- access_token_secret=""
- auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
- auth.set_access_token(access_token, access_token_secret)
- api = tweepy.API(auth)
- while True:
- time.sleep(10)
- last = first(api.mentions_timeline())
- if (last):
- print("woo")
- api.retweet(last.id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement