A simple command-line tool that fetches and displays the recent activity of any GitHub user using the GitHub public API. This project demonstrates how to work with:
- HTTP APIs
- JSON data
- Python standard library networking
- Command-line interfaces (CLI)
Fetches a user’s most recent GitHub activity, such as:
- Pushes
- Issues
- Pull requests
- Stars
- Forks
Error handling for:
- Invalid users
- Rate limits
- Network failures
Clone the repository:
git clone https://github.com/HienXuanPham/github-activity-cli.git
cd github-activity-cli
Run the script from the terminal:
python main.py <github_username>
-
Reads the GitHub username from the command line
-
Calls the GitHub Events API:
https://github.com/ghapi/users/<username>/events
-
Parses the JSON response
-
Converts GitHub event objects into readable messages
-
Prints them to the terminal
MIT License ( ദ്ദി ˙ᗜ˙ )