改用自带的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
@@ -122,7 +122,7 @@ def get_title(markup):
:param markup: html标签
:return: 标题
"""
soup = BeautifulSoup(markup, 'lxml')
soup = BeautifulSoup(markup, 'html.parser')
title = soup.title
if title: