Search GitHub users for keywords in their repositories or code using a CSV list of profiles.
This tool reads a .csv file with GitHub user info, prompts you for keywords, and outputs a CSV of matching users along with the link to where the keyword was found.
- β
Accepts a CSV file with
Query, Full Name, Username, Profile URL - π Searches:
- Repository name + description
- Code files using GitHub's code search
- π§ Prompts you interactively for keywords
- π§Ύ Outputs matches to
user_matches.csvincluding:- Full name
- GitHub username
- Profile URL
- π Link to the matched repository or file
- Python 3
pandasandrequestslibraries
Install dependencies:
pip install pandas requestspython usersearch.py users.csvYouβll be prompted like:
Enter keywords to search (comma-separated): machine learning, flask, etl
Your CSV should include at least the following columns:
Query,Full Name,Username,Profile URL
data science,Alice Johnson,alicejohnson,https://github.com/alicejohnson
etl,Bob Smith,bsmith,https://github.com/bsmith
Column headers are case-insensitive and can contain spaces.
fullname,username,profile_url,matched_url
Alice Johnson,alicejohnson,https://github.com/alicejohnson,https://github.com/alicejohnson/data-pipeline
To avoid hitting GitHubβs anonymous rate limits, add your personal access token inside the script:
GITHUB_TOKEN = 'your_token_here'Or load it from an environment variable:
import os
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")- Save
matched_keywordas well - Export to JSON instead of CSV
- Add CLI flags for keyword input or output name
Built with π» by [gray-area]. MIT Licensed.