Skip to content

HienXuanPham/github-activity-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

GitHub Activity CLI

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)

Features

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

How to use this project

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>

How it Works

  1. Reads the GitHub username from the command line

  2. Calls the GitHub Events API:

https://github.com/ghapi/users/<username>/events
  1. Parses the JSON response

  2. Converts GitHub event objects into readable messages

  3. Prints them to the terminal

License

MIT License ( ദ്ദി ˙ᗜ˙ )

About

stalk a github user's activities ( ˶°ㅁ°) !!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages