diff --git a/skills/github-trending/CONTRIBUTORS b/skills/github-trending/CONTRIBUTORS new file mode 100644 index 0000000..d8649da --- /dev/null +++ b/skills/github-trending/CONTRIBUTORS @@ -0,0 +1 @@ +root diff --git a/skills/github-trending/SKILL.md b/skills/github-trending/SKILL.md new file mode 100644 index 0000000..7b7a34a --- /dev/null +++ b/skills/github-trending/SKILL.md @@ -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