Advertisement
Guest User

twitterBot-Simple

a guest
Mar 10th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. # this is all you need ...after you install some stuff
  2. # full details are here:
  3. # this is really all you need to know though:
  4. # pip install TwitterFollowBot
  5. # pip install twitter
  6. # https://pypi.python.org/pypi/TwitterFollowBot/v2.0
  7. #-------------------------------------------------------
  8. # Usage
  9. # Configuring the bot
  10.  
  11. # Before running the bot, you must first set it up so it can connect to the Twitter API. Create a config.txt file and fill in # the following information:
  12.  
  13. # OAUTH_TOKEN:
  14. # OAUTH_SECRET:
  15. # CONSUMER_KEY:
  16. # CONSUMER_SECRET:
  17. # TWITTER_HANDLE:
  18. # ALREADY_FOLLOWED_FILE:already-followed.txt
  19. # FOLLOWERS_FILE:followers.txt
  20. # FOLLOWS_FILE:following.txt
  21. # USERS_KEEP_FOLLOWING:
  22. # USERS_KEEP_UNMUTED:
  23. # USERS_KEEP_MUTED:
  24.  
  25. #-------------------------------------------------------
  26.  
  27. #!/usr/bin/env python
  28. # -*- coding: utf-8 -*-
  29. from TwitterFollowBot import TwitterBot
  30. import time
  31. import os, ConfigParser, tweepy
  32.  
  33. while True:
  34. my_bot = TwitterBot()
  35. my_bot.sync_follows()
  36. my_bot.auto_follow("<key phrase here>", count=10)
  37. my_bot.auto_follow_followers()
  38. my_bot.auto_fav("<key phrase here>", count=1000)
  39. my_bot.auto_rt("<key phrase here>", count=1000)
  40. time.sleep( 1800 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement