CLI utility for fetching and displaying GitHub user profiles right from the terminal.
Without opening a browser. Quick and simple.
git clone https://github.com/larelgit/GithubProfileParser.git
cd GithubProfileParserThis project uses Maven to manage dependencies (like Google Gson).
mvn clean installRun the main class using Maven:
mvn exec:java -Dexec.mainClass="org.example.GitHubProfileAnalyzer"When you run the application, it will wait for your input. Type any valid GitHub username and press Enter to see their public statistics:
Enter GitHub username: octocat
User Info:
Username: octocat
Name: The Octocat
Company: @github
Location: San Francisco
Bio: N/A
Public Repos: 8
Followers: 13500
Following: 9
If a user doesn't exist, the tool safely handles the 404 response:
Enter GitHub username: thisuserdoesnotexist123456
User not found
├── src/main/java/org/example/
│ └── GitHubProfileAnalyzer.java # Main CLI loop, HTTP client, and JSON data model
├── pom.xml # Maven configuration and dependencies (Gson)
└── .gitignore # Git ignore rules
- Java: JDK 8 or higher
- Build Tool: Apache Maven
- Network: Active internet connection to reach
api.github.com
- Connects strictly to the official public
https://api.github.com/users/endpoint. - Because it uses unauthenticated requests, it is subject to GitHub's standard rate limits for unauthenticated API access (up to 60 requests per hour per IP).