模块优化

This commit is contained in:
Jing Ling
2020-08-11 14:50:30 +08:00
parent b7de3f8ea6
commit b7e9c7e781
17 changed files with 94 additions and 173 deletions
+2 -5
View File
@@ -34,11 +34,8 @@ class Gitee(Search):
if 'class="empty-box"' in resp.text:
break
soup = BeautifulSoup(resp.text, 'html.parser')
subdomains = self.match_subdomains(soup.text, fuzzy=False)
if not subdomains:
break
if not full_search and subdomains.issubset(self.subdomains):
# 在全搜索中发现搜索出的结果有完全重复的结果就停止搜索
subdomains = self.match_subdomains(soup, fuzzy=False)
if not self.check_subdomains(subdomains):
break
self.subdomains = self.subdomains.union(subdomains)
if '<li class="disabled"><a href="###">' in resp.text: