Skip to content

lumoss101/github-user-activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

GitHub Activity Viewer

A simple command-line tool to display the latest public GitHub activity for any user, with emoji icons and color-coded output powered by rich.

Features

  • Fetches up to 20 recent public events for any GitHub user
  • Displays activity with descriptive emoji icons per event type
  • Color-highlighted output using rich
  • Graceful error handling for network issues, timeouts, and HTTP errors

Requirements

Installation

  1. Clone or download this repository.

  2. Install dependencies:

    pip install requests rich

Usage

python script.py <github-username>

Example:

python script.py torvalds

Sample output:

Latest events for torvalds:
1. πŸš€ pushed to torvalds/linux
2. πŸ› created issue #1234
3. πŸ’¬ commented on issue #1230
4. ⭐ starred git/git

Supported Event Types

Icon Event
πŸ’¬ Issue comment
πŸš€ Push
πŸ› Issue opened
⭐ Repository starred
πŸ”€ Pull request
πŸ‘€ Pull request review
πŸ—¨οΈ Pull request review comment
✨ Branch or tag created

Notes

  • Uses the GitHub Events API, which only returns public events.
  • The API returns a maximum of 300 events and up to 90 days of history. This script fetches the most recent 20.
  • No authentication is required, but unauthenticated requests are limited to 60 requests per hour by GitHub.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages