# Github Trending Scraper

> Scrape GitHub Trending repositories and save to JSON files. Use when the user wants to fetch GitHub trending projects, get popular repositories, scrape trending lists, or requests "get GitHub trending", "scrape GitHub popular projects", or "fetch trending repos" for daily, weekly, or monthly periods.

- **Type:** Skill
- **Install:** `agentstack add skill-lisniuse-github-trending-skill-github-trending-skill`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [lisniuse](https://agentstack.voostack.com/s/lisniuse)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [lisniuse](https://github.com/lisniuse)
- **Source:** https://github.com/lisniuse/github-trending-skill

## Install

```sh
agentstack add skill-lisniuse-github-trending-skill-github-trending-skill
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# GitHub Trending Scraper

Scrape GitHub Trending repositories across different time periods (daily, weekly, monthly) and save structured data to JSON files.

## Usage

Run the scraper script to fetch trending repositories:

```bash
python scripts/github_trending_scraper.py
```

The script will:
1. Scrape trending repositories for all three periods (daily, weekly, monthly)
2. Extract project metadata: name, URL, description, language, stars, forks
3. Save results to `github_trending.json` in the current directory
4. Display statistics about scraped projects

## Output Format

The generated JSON file contains:

```json
{
  "update_time": "2026-02-09 10:30:00",
  "data": {
    "daily": [...],
    "weekly": [...],
    "monthly": [...]
  }
}
```

Each project includes:
- `name`: Repository full name (owner/repo)
- `url`: GitHub repository URL
- `description`: Project description
- `language`: Primary programming language
- `stars`: Total star count
- `forks`: Total fork count
- `stars_daily/weekly/monthly`: New stars in the period

## Dependencies

Install required packages:

```bash
pip install requests beautifulsoup4
```

Or use the provided requirements file:

```bash
pip install -r requirements.txt
```

## Customization

To scrape only specific periods, modify the `periods` list in the `main()` function of the script.

To change the output filename, modify the `output_file` variable in the script.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [lisniuse](https://github.com/lisniuse)
- **Source:** [lisniuse/github-trending-skill](https://github.com/lisniuse/github-trending-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-lisniuse-github-trending-skill-github-trending-skill
- Seller: https://agentstack.voostack.com/s/lisniuse
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
