[teamai] Push 1 resource(s) from root

This commit is contained in:
2026-09-10 16:51:42 +08:00
parent f3388c50e2
commit 259a70fb90
2 changed files with 35 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
root
+34
View File
@@ -0,0 +1,34 @@
---
name: github-trending
description: Access GitHub trending repositories and developers data by scraping github.com/trending.
---
# GitHub Trending
GitHub does NOT provide an official trending API. The trending page at github.com/trending must be scraped directly.
## How to Get GitHub Trending Data
### Approach 1: web_fetch github.com/trending
Use web_fetch to get the trending page and extract repository names, descriptions, stars, and languages.
```
web_fetch url="https://github.com/trending"
```
### Approach 2: GitHub Search API (Limited)
Use the GitHub Search API with date filters:
```
web_fetch url="https://api.github.com/search/repositories?q=created:>YYYY-MM-DD&sort=stars&order=desc&per_page=10"
```
### Approach 3: ossinsight.io API
```
web_fetch url="https://api.ossinsight.io/v1/collections/1/hot_repos"
```
## Tips
- Focus on daily/weekly trending, not all-time
- Extract: repo name, description, language, stars gained, total stars
- Use language filter for tech-specific trending: `https://github.com/trending/python?since=daily`
- ossinsight.io provides structured JSON which is easier to parse