Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rednafi/github-follow-bot

Bot that follows everyone who follows the target user(s)
https://github.com/rednafi/github-follow-bot

bot github python python3 selenium selenium-python selenium-webdriver

Last synced: 20 days ago
JSON representation

Bot that follows everyone who follows the target user(s)

Awesome Lists containing this project

README

        

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](https://chromedriver.chromium.org/downloads) for your OS.

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

```python
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](https://selenium-python.readthedocs.io/). 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 🤷‍♂️