Coder Social home page Coder Social logo

correia-jpv / github-follow-bot Goto Github PK

View Code? Open in Web Editor NEW
77.0 3.0 15.0 73 KB

๐Ÿค– Automated follow/unfollow bot for GitHub. Follow from multiple sources. Choose which users to unfollow. Custom options to control bot speed and maximum actions.

License: MIT License

Python 100.00%
python github github-api bot bots automation automatic follow followers following

github-follow-bot's Introduction

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

Getting Started

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.

How to get your GitHub PAT

Add your GitHub username and PAT to .env file

Create a .env file on the project's root directory or edit .env.sample (rename to .env) and add your username and PAT.

GITHUB_USER=YOUR_GITHUB_USERNAME
TOKEN=YOUR_GITHUB_PERSONAL_ACCESS_TOKEN

How to Use

Follow

Target user's followers

python bot_follow.py -t <TARGET_USER>

Followers of the most popular users from a country

(list of valid countries)

python bot_follow.py -p <COUNTRY_NAME>

From a file

Follow users from a pre-generated file (JSON)

python bot_follow.py -f <FILENAME>

Unfollow

note: Unfollow order is FIFO, as in the most recently followed user will be the last to be unfollowed.

All

Unfollow all your followings

python bot_unfollow.py -a

Followers

Only unfollow users who already follow you

python bot_unfollow.py -fo

Non-followers

Only unfollow users who don't follow you back

python bot_unfollow.py -nf

From a file

Unfollow users from a pre-generated file (JSON)

python bot_unfollow.py -f <FILENAME>

Options

Maximum follows/unfollows

Set the 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
     -slmin 600
    
  • Maximum delay when rate limited
     -slmin 1500
    

Future Implementation

  • Schedule - Bot only performs actions between set time and sleeps after off-schedule
  • Max follow per source - Follow max n per popular user
  • Add follow source - Follow users per topic
  • 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! Read the contribution guidelines first.

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.

Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.