5alt / GitLeak

GitLeak 是一个从 Github 上查找密码信息的小工具
MIT License
133 stars 33 forks source link

GitHub API #1

Open yichinzhu opened 6 years ago

yichinzhu commented 6 years ago

GitHub有提供API,直接用API搜不是更好吗 https://developer.github.com/

5alt commented 6 years ago

参考 https://github.com/repoog/GitPrey#技术实现说明

在项目内关键词文件名和关键词内容扫描时未采用API,原因有两点:一是搜索代码的API频率限制很大(认证后30次/分钟)无法满足快速搜索;二是某些项目关键词的搜索结果项超过100条,而API在设置per_page参数后至多支持展现100条结果项;