改用自带的html.parser

This commit is contained in:
Jing Ling
2020-04-26 01:48:15 +08:00
parent 7fcf135456
commit dbc6581de7
6 changed files with 8 additions and 43 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class Baidu(Search):
:param html: 响应体
:return: 子域
"""
bs = BeautifulSoup(html, features='lxml')
bs = BeautifulSoup(html, 'html.parser')
subdomains_all = set()
# 获取搜索结果中所有的跳转URL地址
for find_res in bs.find_all('a', {'class': 'c-showurl'}):