Advertisement
GeeckoDev

Untitled

Mar 5th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #!/usr/bin/python2
  2.  
  3. import tweepy
  4. import time
  5.  
  6. lastId = None
  7.  
  8. consumer_key=""
  9. consumer_secret=""
  10. access_token=""
  11. access_token_secret=""
  12.  
  13. auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  14. auth.set_access_token(access_token, access_token_secret)
  15.  
  16. api = tweepy.API(auth)
  17.  
  18. while True:
  19.     time.sleep(10)
  20.    
  21.     last = first(api.mentions_timeline())
  22.     if (last):
  23.         print("woo")
  24.         api.retweet(last.id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement