Skip to content

rednafi/github-follow-bot

Repository files navigation

Bot logo

Github Follow Bot

What Does it Do?

Follows Github users and also their followers from a user provided list of Github handles.

Installation

  • Clone the repo.

  • Create a Python virtual environment.

  • Install the dependencies:

    pip install -r requirements.txt
    
  • Download compatible Chrome Driver for your OS.

  • Provide your Chrome Driver path, credentials and the target users' Github usernames:

    CHROME_DRIVER_PATH = "./chromedriver_linux64/chromedriver"
    
    # Put your github username and password here
    YOUR_NAME = "yourname"
    YOUR_PASS = "yourpass"
    
    # List of people's github usernames whose followers you want to follow
    # This could be even yourself
    TARGET_NAMES_LIST = ["rednafi", "gvanrossum"]
  • Run the bot and let it do its work:

    python -m followbot.bot
    

Development & Contribution

  • After cloning the repo, activate python environment and run:

    pip install -r requirements-dev.txt && pip install -r requirements.txt
    
  • Make your proposed changes

  • Before sending a PR, lint the code with:

    make pylinter
    
  • To upgrade the dependencies and sync your environment, run:

    make pyupgrade
    

Disclaimer

I created this just to fiddle with some selenium. The code could be polished. Moreover, it's debatable whether you should use a bot to follow people or not. Also, there is a high chance that Github will flag you as a spam user and ban your public profile. Use at your own risk 🤷‍♂️