单独设置超时90秒

This commit is contained in:
shmilylty
2022-11-22 15:26:11 +08:00
parent afcb6a9a2d
commit 5aae215bca
+2 -1
View File
@@ -15,6 +15,7 @@ class Crtsh(Query):
"""
self.header = self.get_header()
self.proxy = self.get_proxy(self.source)
self.timeout = 90
params = {'q': f'%.{self.domain}', 'output': 'json'}
resp = self.get(self.addr, params)
if not resp:
@@ -46,4 +47,4 @@ def run(domain):
if __name__ == '__main__':
run('example.com')
run('huawei.com')