SHARE
TWEET

Untitled

a guest Feb 18th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. import sys, os, time
  3. import tweepy
  4. keys = dict(
  5. consumer_key='_YOUR_CONSUMER_KEY',
  6. consumer_secret='_YOUR_SECRET_KEY',
  7. access_token='_YOUR_ACCESS_TOKEN',
  8. access_token_secret='_YOUR_ACCESS_TOKEN_SECRET'
  9. )
  10.  
  11. user = "@YOUR_USERNAME"
  12.  
  13. auth = tweepy.OAuthHandler(keys['consumer_key'], keys['consumer_secret'])
  14. auth.set_access_token(keys['access_token'], keys['access_token_secret'])
  15. api = tweepy.API(auth)
  16.  
  17. def tweet():
  18.     message=input("tweet: ")
  19.     api.update_status(message)
  20.     time.sleep(1000)
  21. if __name__ == "__main__":
  22.     while 1:
  23.         tweet()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top