8000 GitHub - IBSP-Labs/github-follow-script: Automation tool that follows GitHub users based on smart algorithms to analyze behavior and increase chances of getting follow-backs.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Automation tool that follows GitHub users based on smart algorithms to analyze behavior and increase chances of getting follow-backs.

License

Notifications You must be signed in to change notification settings

IBSP-Labs/github-follow-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Follow Script Documentation

Python GitHub Code Size Maintenance Version GitHub followers GitHub stars GitHub issues GitHub forks License

Profile Views

Typing SVG

Tech Stack

Python Requests GitHub API JSON REST API DateTime Random

CI/CD Status

Tests Build Code Quality Last Commit

Overview

The GitHub Follow Script is an automation tool designed to help GitHub users expand their network by intelligently identifying and following users who are likely to follow back. The script implements strategic algorithms to analyze GitHub users' behavior patterns and select candidates based on specific criteria.

Features

  • Smart User Selection: Uses multiple strategies to find potential users to follow
  • Activity Analysis: Considers user activity to avoid following inactive accounts
  • Follow Ratio Analysis: Targets users with a history of following others
  • Rate Limiting Protection: Implements delays to avoid triggering GitHub's anti-bot measures
  • API Usage Monitoring: Checks remaining API calls before execution

Requirements

  • Python 3.6+
  • requests library
  • GitHub Personal Access Token with user:follow permissions

Installation

# Clone the repository
git clone https://github.com/isamytanaka/github-follow-script.git

# Change to the project directory
cd github-follow-script

# Install dependencies
pip install -r requirements.txt

Installation Setup Time

Configuration

The script uses several configurable parameters to determine suitable follow candidates:

Parameter Default Description
MAX_FOLLOWING 1000 Maximum number of accounts a user can follow to be considered
MIN_FOLLOWERS 5 Minimum followers required (avoids inactive accounts)
MAX_FOLLOWERS 1000 Maximum followers threshold (avoids popular accounts unlikely to follow back)
INACTIVITY_DAYS 60 Days without activity to consider an account inactive
FOLLOW_RATIO_THRESHOLD 1.2 Minimum following/followers ratio indicating follow-back tendency
MAX_FOLLOWS_PER_DAY 20 Maximum users to follow per execution

Algorithm

The script employs a multi-phase algorithm:

Phase 1: Information Gathering

  1. Retrieve authenticated user information
  2. Get lists of current followers and users being followed
  3. Check GitHub API rate limits

Phase 2: Candidate Identification

The script uses two complementary strategies:

  1. Network Analysis: Examines the followers of your followers
  2. Common Interest Analysis: Identifies users that your followers also follow

Phase 3: Candidate Filtering

Each potential candidate is evaluated against several criteria:

  1. Following count < MAX_FOLLOWING
  2. Followers count > MIN_FOLLOWERS and < MAX_FOLLOWERS
  3. Active within the last INACTIVITY_DAYS days
  4. Following/followers ratio ≥ FOLLOW_RATIO_THRESHOLD

Phase 4: Follow Execution

  1. Follows each qualified candidate with a random delay
  2. Reports success or failure for each follow attempt
  3. Provides a summary of the operation

Function Descriptions

Function Purpose
get_user_info() Retrieves profile information for a specific user
get_my_info() Gets authenticated user information
get_user_activity() Determines how recently a user has been active
get_my_followers() Retrieves complete list of authenticated user's followers
get_my_following() Gets list of users the authenticated user follows
get_user_followers() Retrieves followers of a specific user
get_user_following() Gets list of users a specific user follows
follow_user() Executes the GitHub API call to follow a user
is_good_follow_candidate() Evaluates if a user meets all criteria for following
find_potential_follows() Implements the candidate search strategies
main() Orchestrates the entire follow process

Performance Metrics

API Calls Memory Usage Execution Time Success Rate

Usage

  1. Update the TOKEN constant 93F5 with your personal GitHub token
  2. Adjust the criteria parameters if needed
  3. Run the script with Python:
    python main.py
    

Best Practices

  • Run Infrequently: Running the script once every few days helps maintain a natural growth pattern
  • Adjust Parameters: Fine-tune the configuration based on your GitHub account size and target audience
  • Monitor Results: Track your follow-back rate to optimize parameters

Limitations

  • Subject to GitHub API rate limits (5,000 requests per hour for authenticated requests)
  • Limited to public user data available through the GitHub API
  • Cannot guarantee that selected users will follow back

Security Note

Security

Keep your GitHub token secure. The token included in the script should be replaced with your own and never shared publicly.

Compatibility

Windows macOS Linux Docker

Contributions Welcome!

PRs Welcome Issues Contributors

Ethical Considerations

This script is designed for legitimate network building and should be used responsibly. Avoid excessive use that might be considered spam or manipulation of GitHub's platform.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Made with Love GitHub Activity

About

Automation tool that follows GitHub users based on smart algorithms to analyze behavior and increase chances of getting follow-backs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0