Update virustotal_api.py

修改VT API查询死循环问题
This commit is contained in:
AVGirl
2021-12-25 15:00:46 +08:00
committed by GitHub
parent a42086d9cb
commit 9143b2c020
+2
View File
@@ -28,6 +28,8 @@ class VirusTotalAPI(Query):
self.subdomains.update(subdomains) self.subdomains.update(subdomains)
data = resp.json() data = resp.json()
next_cursor = data.get('meta').get('cursor') next_cursor = data.get('meta').get('cursor')
if not next_cursor:
break
def run(self): def run(self):
""" """