处理部分author获取失败问题

This commit is contained in:
Gary 2022-02-26 10:46:02 +08:00
parent 10ccb80a36
commit 2dbc6393ef
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class DoubanBookHtmlParser:
def author_filter(self, a_element): def author_filter(self, a_element):
a_href = a_element.attrib['href'] a_href = a_element.attrib['href']
return '/author' in a_href return '/author' in a_href or '/search' in a_href
def get_text(self, element, default_str=''): def get_text(self, element, default_str=''):
text = default_str text = default_str