模块优化

This commit is contained in:
Jing Ling
2020-08-10 18:19:11 +08:00
parent 4f462fcd60
commit 8a035c76ca
42 changed files with 49 additions and 153 deletions
+1 -3
View File
@@ -33,9 +33,7 @@ class GoogleAPI(Search):
'q': word, 'fields': 'items/link',
'start': self.page_num, 'num': self.per_page_num}
resp = self.get(self.addr, params)
if not resp:
return
subdomains = self.match_subdomains(resp.text)
subdomains = self.match_subdomains(resp)
if not subdomains:
break
if not full_search and subdomains.issubset(self.subdomains):