Github Follow Bot in Python
To Use the bot, follow the following steps
- Create a Python virtual environment
$ python3 -m venv venv $ source venv/bin/activate
- Install ghbot package with pip
$ pip install ghbot
- Create access token https://github.com/settings/tokens/new with required user permissions (read:user, user:email, user:follow)
- Run the bot with the access token and the number of followers.
$ python -m ghbot.cli follow $access-token-here --c 3000 -v &>out.log &
- Then wait or run as a background process.
- To unfollow users that didn't follow you.
$ python -m ghbot.cli clean $access-token-here -v