Skip to content

A bot for Twitter. You can follow users in a specific location or tweeting specific words and unfollow those who do not follow you back (and are not included in whitelist.txt). Also generates REPORTS!

Notifications You must be signed in to change notification settings

ricardojoserf/twitter-followers-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-bot

A bot for Twitter. OPTIONS: Follow users from query, geocode or list; unfollow who do not follow back (and are not included in whitelist.txt); create reports (containing followers, followings, people who do not follow me back and people i do not follow back).

Usage

Follow people who tweeted a word (query), limited to the limit value:

python twitter-bot.py -o follow -q {query} -l {limit}

Follow people who tweeted in a location (geocode), limited to the limit value:

python twitter-bot.py -o follow -g {geocode} -l {limit}

Follow users from a list file:

python twitter-bot.py -o follow -i {list_file}

Unfollow users from a list file:

python twitter-bot.py -o unfollow -i {list_file}

Unfollow all the people who do not follow you back and are not included in whitelist.txt:

python twitter-bot.py -o unfollow-back

Show report (followers, followings, people who do not follow me back and people i do not follow back):

python twitter-bot.py -o info

Examples

Follow 5 people tweeting 'oscp':

python twitter-bot.py -q "oscp" -l 5 -o follow

Screenshot

Follow 7 people tweeting in 40.432,-3.708:

python3 twitter-bot.py -g "40.432,-3.708,10km" -l 7 -o follow

Screenshot

Follow users in example.lst:

python3 twitter-bot.py -o follow -i example.lst

Screenshot

Unfollow users in example.lst:

Screenshot

Unfollow people who i follow but they do not follow me back:

python3 twitter-bot.py -o unfollow-back

Screenshot

python3 twitter-bot.py -o info

Screenshot

Screenshot

Requirements

Python 2.x:

pip install tweepy

Python 3.x:

pip3 install tweepy

Create a twitter account and a twitter app, and fill the config.py file with the data you can create in https://developer.twitter.com

Note

Tested both in Python2.x (2.7.15rc1) and Python 3.x (3.6.7)

About

A bot for Twitter. You can follow users in a specific location or tweeting specific words and unfollow those who do not follow you back (and are not included in whitelist.txt). Also generates REPORTS!

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Languages