This commit is contained in:
Jing Ling
2020-11-18 23:06:21 +08:00
parent 6ded309a8c
commit 6e58e7792b
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -1,3 +1,5 @@
import time
import requests
from config import settings
from common.search import Search
@@ -50,6 +52,7 @@ class GithubAPI(Search):
return
page = 1
while True:
time.sleep(self.delay)
params = {'q': self.domain, 'per_page': 100,
'page': page, 'sort': 'indexed'}
try: