We like browsing GitHub's trending page, so we made a CLI version.
- Shows trending repositories with daily star counts
- Supports daily, weekly, and monthly views
- Click on any repo to read its README
- Simple terminal interface
git clone https://github.com/psalias2006/github-trending-cli.git
cd github-trending-cli
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -e .
# Build and run
git clone https://github.com/psalias2006/github-trending-cli.git
cd github-trending-cli
docker build -t github-trending-cli .
docker run -it --rm github-trending-cli
# Or run different time ranges
docker run -it --rm github-trending-cli --range weekly
docker run -it --rm github-trending-cli -r monthly
github-trending # today's trending
github-trending --range weekly # this week
github-trending -r monthly # this month
Enter a repo number to read its README, or press Enter to see more repos.
Scrapes GitHub's trending page and displays it in your terminal. That's it.
- scraper.py - Gets the trending page HTML and parses it
- display.py - Shows the data nicely in terminal
- cli.py - Handles the command line stuff
Uses requests, beautifulsoup4, rich, and lxml.
Fork it, make changes, send a PR.
MIT