From 52f33297397476f7fac2196bb44ecdac0caf5c8a Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Sun, 4 Jul 2021 15:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BB=B6=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/search/github_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/search/github_api.py b/modules/search/github_api.py index 254313c..71dec48 100644 --- a/modules/search/github_api.py +++ b/modules/search/github_api.py @@ -1,6 +1,5 @@ import time -import requests from config import settings from common.search import Search from config.log import logger @@ -13,6 +12,7 @@ class GithubAPI(Search): self.module = 'Search' self.addr = 'https://api.github.com/search/code' self.domain = domain + self.delay = 5 self.token = settings.github_api_token def search(self): @@ -81,4 +81,4 @@ def run(domain): if __name__ == '__main__': - run('mi.com') + run('freebuf.com')