Skip to content

surya-veer/TwitterBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

Releases

No releases published

Packages

No packages published

Languages