「nomi-sec/PoC-in-GitHub」は GitHub API で検索してリポジトリ情報を収集しているが、1,000以上は収集できない。 1ページに30件表示されるので34ページまでしか検索できず、35ページ以降はエラーとなる。 $ curl "https://api.github.com/search/repositories?q=\"CVE-2020-\"&page=35&sort=updated" { "message": "Only the first 1000 search results are available", "documentation_url": "https://docs.github.com/v3/search/" } なので34ページ以内に収めるために、検索条件にリポジトリ作成日時を指定できる「created:」キーワードを使っている。 具体的には
![【日記 21.03.19】GitHub API で1,000件以上検索したい奴|motikan2010](https://cdn-ak-scissors.b.st-hatena.com/image/square/c437f56e75f6bab644b9f9975ba5a2ab108c9d95/height=288;version=1;width=512/https%3A%2F%2Fd2l930y2yx77uc.cloudfront.net%2Fproduction%2Fsocial_images%2F89ae8c822e7f7d5db46a10b29ebcd73d5a1a4411.jpg)