TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

BaseMax / github-name-friends

A simple Python tool that generates a list of your GitHub friends with their profile links, names, followers, and more. The tool fetches data from GitHub profiles, formats it in multiple output formats (Markdown, HTML, JSON, CSV), and allows you to sort users by name or followers.

3 0 Language: Python License: MIT Updated: 10mo ago

README

GitHub Name Friends

A simple Python tool that generates a list of your GitHub friends with their profile links, names, followers, and more. The tool fetches data from GitHub profiles, formats it in multiple output formats (Markdown, HTML, JSON, CSV), and allows you to sort users by name or followers.

Features

  • Fetches GitHub profile data (name, followers, location, bio, etc.)
  • Supports input from a file or command line
  • Sort users by name or followers
  • Output in Markdown, HTML, JSON, and CSV formats

Installation

  1. Clone the repository:
git clone https://github.com/BaseMax/github-name-friends.git
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file with your GitHub token (optional but recommended for higher API limits):
GITHUB_TOKEN=your_github_token

Usage

Command-Line Arguments

  • -f, --file: Input file containing GitHub usernames or profile URLs (one per line).
  • usernames: GitHub usernames or profile URLs directly passed as arguments.
  • -v, --verbose: Enable verbose output (for debugging).
  • --include-orgs: Include organization accounts.
  • --sort-by: Sort users by name or followers (default: name).
  • --out-dir: Directory to save the output files (default: current directory).

Example Usage

1. Using a file:

$ python github_friends.py -f friends.txt

2. Using a list of usernames:

$ python github_friends.py user1 user2 user3

3. Enabling verbose output:

$ python github_friends.py user1 -v

4. Sorting by followers:

$ python github_friends.py user1 user2 --sort-by followers

Output

The tool will generate the following files in the output directory:

  • friends.md: A Markdown file with a list of your friends' GitHub profile links.
  • friends.html: An HTML file with a list of your friends' GitHub profile links.
  • friends.json: A JSON file containing detailed information about the users.
  • friends.csv: A CSV file with basic profile information.

Example Output (Markdown)

# My Friends

- [John Doe](https://github.com/johndoe)
- [Jane Smith](https://github.com/janesmith)

Example Output (HTML)



  My Friends
  body{font-family:sans-serif;padding:20px;}a{color:#0366d6;text-decoration:none;}li{margin:5px 0;}



# My Friends




- John Doe

- Jane Smith

License

MIT License - Copyright (c) 2025 Max Base

0 AIs selected
Clear selection
#
Name
Task