Advertisement
Guest User

EnjoyTheSilence Bot

a guest
Jun 16th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. import tweepy, time, sys
  2.  
  3. argfile = str(sys.argv[1])
  4.  
  5. #enter the corresponding information from your Twitter application:
  6. CONSUMER_KEY = 'AOqwUv5bH51mJrtrz1vmqWixg'#keep the quotes, replace this with your consumer key
  7. CONSUMER_SECRET = 'pqmbh9bSwk5Xv5oJd9ab7mg0bwHoG1YOAsLq6mJAKV490m8XlF'#keep the quotes, replace this with your consumer secret key
  8. ACCESS_KEY = '3194805406-xiHl3OxyBmS7oGy8m02p3DFljxqaZ80BDKZ3Wdo'#keep the quotes, replace this with your access token
  9. ACCESS_SECRET = 'cQK3EqeZMBLpSIOQiobi6ggbpGVQjNV5JwezSZSIiRGWP'#keep the quotes, replace this with your access token secret
  10. auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
  11. auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
  12. api = tweepy.API(auth)
  13.  
  14. filename=open(argfile,'r')
  15. f=filename.readlines()
  16. filename.close()
  17.  
  18. for line in f:
  19.     api.update_status(status = line)
  20.     time.sleep(60)#Tweet every 1 minutes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement