GitHub API 中是否有一个端点可以为我提供 GitHub 上所有语言的列表?我正在寻找与 github.com 网站上“趋势”部分中的语言下拉列表类似的结果。
不是直接来自 GitHub API。
The OP敏捷王牌 https://stackoverflow.com/users/3247591/agileace添加评论 https://stackoverflow.com/questions/21423956/github-api-list-of-langauges/21424163?noredirect=1#comment32321604_21424163:
我发现有一个语言学家图书馆 https://github.com/github/linguist由 GitHub 维护。
在此存储库中,有一个 YAML 文件(lib/linguist/languages.yml https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)包含所有语言以及相关信息。
我将编写一个脚本来解析该文件。
我在《语言学家图书馆》中提到过github 如何确定项目的语言? https://stackoverflow.com/a/5318688/6309".
您还可以从各种 GitHub 统计站点获取该数据,例如www.githubarchive.org http://www.githubarchive.org/:
See "2013 年最热门的 Github 语言(到目前为止) http://adambard.com/blog/top-github-languages-for-2013-so-far/”,亚当·巴德:
我刚刚发现GitHub 档案 http://www.githubarchive.org/,可使用以下方式查询的 Github 事件数据集谷歌大查询 https://developers.google.com/bigquery/。多有趣啊!所以我决定统计今年按语言创建了多少个存储库。
SELECT repository_language, count(repository_language) AS repos_by_lang
FROM [githubarchive:github.timeline]
WHERE repository_fork == "false"
AND type == "CreateEvent"
AND PARSE_UTC_USEC(repository_created_at) >= PARSE_UTC_USEC('2013-01-01 00:00:00')
AND PARSE_UTC_USEC(repository_created_at) < PARSE_UTC_USEC('2013-08-30 00:00:00')
GROUP BY repository_language
ORDER BY repos_by_lang DESC
LIMIT 100
编码器统计网 http://coderstats.net/info/about/也可能是一个很好的来源,因为它语言部分 http://coderstats.net/languages/.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)