为了能够获取github上的项目的更新时间,我们需要调用github的一个API:
https://api.github.com/repos/用户名/库名
https://zhuanlan.zhihu.com/p/139289920
GitHub API
Sorry, we had to truncate this directory to 1,000 files. 3,600 entries were omitted from the list. Latest commit info may be omitted.
这个错误信息通常出现在GitHub的Web界面上,当尝试查看一个包含大量文件的目录时。GitHub会限制只显示前1000个文件,超过的部分将被省略。这通常发生在大型仓库中,例如包含大量提交或文件。
但是,如果你在通过GitHub API获取文件列表时遇到类似限制,那么API也有分页机制,默认每页返回30个条目,最多可以设置每页100个条目。你需要使用分页参数来获取所有的文件。
