按文件名搜索github文件内容

时间:2017-01-25 18:14:02

标签: github

我试图在github上识别特定python包的用例。

有没有办法搜索用python编写的存储库中的所有requirements.txt文件中的字符串?

1 个答案:

答案 0 :(得分:2)

来自Web UI

https://github.com/search中,输入:

django filename:requirements.txt language:python in:requirements.txt

like thisenter image description here

来自Github API

https://api.github.com/search/code?q=django+in:requirements.txt+filename:requirements.txt+language:python+org:openmicroscopy

对于Github API案例,您必须提供用户,组织或存储库

检查Search Code doc

请注意文件名过滤器&字符串数据不完全匹配

相关问题