Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.29 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.29 KB

TwitterBot

This is the simplest twitter bot for retweet.

Dependencies

tweepy
install via pip
sudo pip install tweepy

How to use

  1. First create App on twitter.
    Visit: http://apps.twitter.com
    You need a twiter account for this.

  2. Generate consumer_key, consumer_secret, access_token, access_token_secret.
    How to generate Auth token : https://github.com/surya-veer/TwitterBot/blob/master/HOW_TO_GENETARE_TOKEN.md


  1. Download retweet.py form my repository.
  2. Now exit retweet.py and enter your consumer_key, consumer_secret, access_token, access_token_secret in this script.
  3. Finally run retweet.py

How to edit retweet.py

You can increase hash_tag in hast_tag for retweets.
Example:
hash_tag = ['exmaple']
edit:
hash_tag = ['example','example2']
Now for loop will automatically itrate hash_tag

You can set retweet time by changing retweet_time in TweetBot class

If you want to run this script for a long time then you can uncomment tweet.loop_retweet() at the end of script. You can aslo specify the time of loop by changing loop_retweet_time in TweetBot class.

Please commit for any changes or bugs :)