当用户需要以下任意信息时,请使用本技能:
https://github.com/trending
https://github.com/trending/developers
GitHub Trending 页面通过 URL 查询参数进行筛选。所有参数均为可选,不指定时使用默认值。
l - 编程语言(Language)
根据项目主要使用的编程语言筛选。
| 参数 | 说明 |
|------|------|
| l | 语言标识符,小写。如 python、javascript、typescript、go、rust 等 |
示例:只显示 Python 项目 → ?l=python
常用语言值(见 references/languages.md):
python - Python
javascript - JavaScript
typescript - TypeScript
go - Go
rust - Rust
java - Java
c - C
cpp - C++
csharp - C#
ruby - Ruby
php - PHP
kotlin - Kotlin
swift - Swift
since - 日期范围(Date range)
根据时间窗口筛选,统计该时间段内的热度。
| 参数值 | 含义 |
|--------|------|
| daily | 今日(Today) |
| weekly | 本周(This week) |
| monthly | 本月(This month) |
示例:查看本周热门 → ?since=weekly
spoken_language_code - 口语/文档语言
根据项目 README/文档的主要口语筛选,用于找到特定语言文档的项目。
| 参数 | 说明 |
|------|------|
| spoken_language_code | ISO 639-1 语言代码,如 en、zh、ja 等 |
示例:只显示中文文档项目 → ?spoken_language_code=zh
常用口语代码(见 references/spoken-languages.md):
en - 英语(English)
zh - 中文(Chinese)
ja - 日语(Japanese)
ko - 韩语(Korean)
es - 西班牙语(Spanish)
fr - 法语(French)
de - 德语(German)
ru - 俄语(Russian)
pt - 葡萄牙语(Portuguese)
多个参数用 & 连接:
```
https://github.com/trending?l=python&since=weekly
```
```
https://github.com/trending?l=javascript&since=monthly&spoken_language_code=zh
```
```
https://github.com/trending?l=rust&since=daily
```
```
https://github.com/trending/developers?since=weekly
```
当用户请求 GitHub Trending 相关信息时:
l、since、spoken_language_code 的值。
https://github.com/trending[?参数] 或 https://github.com/trending/developers[?参数] 格式拼接。
references/ 目录下的文件。
c%23 表示 C#,需 URL 编码)。
javascript,"ts" → typescript)。
references/languages.md
references/spoken-languages.md
共 1 个版本