去掉无用的参数

This commit is contained in:
Jing Ling
2020-08-01 13:15:15 +08:00
parent 6da4bfa0c0
commit 368969ccc7
+1 -1
View File
@@ -26,7 +26,7 @@ class Baidu(Search):
# 获取搜索结果中所有的跳转URL地址
for find_res in bs.find_all('a', {'class': 'c-showurl'}):
url = find_res.get('href')
subdomains = self.match_location(domain, url)
subdomains = self.match_location(url)
subdomains_all = subdomains_all.union(subdomains)
return subdomains_all