近日看到一个视频,介绍了在github这个代码宝库中高效搜索开源项目的方法,觉得非常有用。在此记录学习下。
视频连接 https://www.bilibili.com/video/av75587104
github项目有项目名,简要描述,readmemd三个要素。
举例:搜索Spring boot
直接搜索Spring boot得到的结果会非常多,不够精确,难以找到自己想要的。
精确化:
项目名包含spring boot: in:name spring boot
结合stars数/forks数: in:name spring boot stars:>1000 forks:>1000
项目详情包含spring boot : in:readme spring boot stars:>1500
简要描述包含spring boot:in:description spring boot
结合语言/更新时间 :in:description spring boot language:java pushed:>2019-09-03
描述中搜爬虫:in:description 爬虫 language:python stars:>1500
判断开源项目是否合适:1.先看基础点和介绍;2.看更新时间;3看代码结构完善,代码全。
其实GitHub上是有高级搜索的使用和参数介绍的,附上链接
https://github.com/search/advanced
https://help.github.com/en/github/searching-for-information-on-github/understanding-the-search-syntax