处理部分author获取失败问题
This commit is contained in:
parent
10ccb80a36
commit
2dbc6393ef
|
@ -150,7 +150,7 @@ class DoubanBookHtmlParser:
|
|||
|
||||
def author_filter(self, a_element):
|
||||
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=''):
|
||||
text = default_str
|
||||
|
|
Loading…
Reference in New Issue