Git Product home page Git Product logo

github-unfollow-php's Introduction

GitHub Unfollow in PHP

This PHP script automatically unfollows users on GitHub who do not follow you back, with the option to maintain a whitelist of users that you do not want to unfollow.

Installation

To use this script, you need to have PHP installed on your system. If you do not have PHP installed, you can download it from the official PHP website.

Once PHP is installed, you can clone the repository or download the PHP script to your local machine.

git clone [email protected]:thiagopac/github-unfollow-php.git

cd github-unfollow-php

Creating a Personal Access Token

To authenticate with the GitHub API, you will need to create a Personal Access Token. Follow these steps to create one:

  1. Go to your GitHub account settings.

  2. Scroll down to the Developer settings section and select Personal access tokens.

  3. Click on the Generate new token dropdown and select Generate new token (classic).

  4. Give your token a descriptive name.

  5. In the Select scopes section, ensure that you check the user > user:follow permission to allow the script to manage following and unfollowing.

  6. Once the token is created, make sure to copy it to your clipboard.

Important: Treat your tokens like passwords and keep them secret. Do not share your tokens in public spaces, and do not include them in your repository.

Usage

To run the script, use the following command in the terminal, replacing <YOUR-TOKEN> with the Personal Access Token you generated and user1 user2 user3 with the GitHub usernames you want to keep following (your whitelist):

php unfollow.php <YOUR-TOKEN> user1 user2 user3

The script will unfollow users who do not follow you back, except for the ones listed in the whitelist.

Contributing

Contributions to this project are welcome. You can contribute by:

  • Suggesting new features

  • Submitting pull requests

License

This project is licensed under the ISC License.

All script languages

github-unfollow-php's People

Contributors

thiagopac avatar

Stargazers

 avatar Paul Koop avatar Legato Bluesummers avatar  avatar  avatar

Watchers

 avatar  avatar

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.