GitHub Follow Bot
Table of Contents
Disclaimer
This is a PoC and was developed for educational purposes only. You may get your account banned. Use at your own risk.
Spam and Inauthentic Activity on GitHub
Automated excessive bulk activity and coordinated inauthentic activity, such as spamming, are prohibited on GitHub. Prohibited activities include:
- (...)
- inauthentic interactions, such as fake accounts and automated inauthentic activity
- rank abuse, such as automated starring or following
From GitHub Acceptable Use Policies
How to Use
Install requirements
pip install -r requirements.txt
Authenticate
Get a GitHub Personal Access Token
Make sure to enable the user
scope and all subscopes inside of that permission.
.env
file
Add your GitHub username and PAT to Create a .env
file on the project's root directory or edit .env.sample
(rename to .env
) and add your username and PAT.
USER=YOUR_GITHUB_USERNAME
TOKEN=YOUR_GITHUB_PERSONAL_ACCESS_TOKEN
Follow
- Target user's followers
python bot_follow.py -t
- Most popular users' followers from a country (list of valid countries)
python bot_follow.py -p
- File (usernames separated by comma)
python bot_follow.py -f
Unfollow
note: Unfollow order is FIFO, as in the most recently followed user will be the last to be unfollowed.
- All
python bot_unfollow.py -a
- Follow back
python bot_unfollow.py -fb
- File (usernames separated by comma)
python bot_unfollow.py -f
Options
Maximum number of follow/unfollow actions
-m 300
Speed
A random delay (in seconds) is performed after follow/unfollow actions or when the account is rate limited. You can change these delays to your liking with the following arguments:
- Minimum delay between actions
-smin 20
- Maximum delay between actions
-smax 120
- Minimum delay when rate limited
-smin 600
- Maximum delay when rate limited
-smin 1500
Future implementation
- Schedule - Bot only performs actions between set time and sleeps after off-schedule
- Add follow source - Grab followers from users listed in a file
- Email followed users - Send an email to followed users with templates (colaboration, follow back or custom)
- Star
n
repositories of followed users
Contributing
Contributions are welcome! Follow the contribution guidelines.
Wish there was another feature? Feel free to open an feature request issue with your suggestion!
If you find a bug, kindly open an bug report issue as described in the contribution guidelines.