标签: python github-api
我想获取所有主题为“ Jenkins”的存储库。
我尝试使用分页获取数据,但是在获取1000条记录后停止。 我尝试使用创建的日期范围来获取数据,但我能够获取超过1000条记录,但这与显示的总数不完全相同。
我创建了如下查询:
https://api.github.com/search/repositories?q=topic:Jenkins+created:2008-01-01..2008-02-01&per_page=100&sort=created&order=asc&page=1 https://api.github.com/search/repositories?q=topic:Jenkins+created:2008-02-01..2008-03-01&per_page=100&sort=created&order=asc&page=1
https://api.github.com/search/repositories?q=topic:Jenkins+created:2008-01-01..2008-02-01&per_page=100&sort=created&order=asc&page=1
https://api.github.com/search/repositories?q=topic:Jenkins+created:2008-02-01..2008-03-01&per_page=100&sort=created&order=asc&page=1
通过每月增加日期。但结果仍然比界面中实际显示的要少。