|
@@ -96,7 +96,7 @@ def remove_ancestors_date_tag(node: HtmlElement):
|
|
|
# print("remove ancestor tag >>> ", ancestor.tag, ancestor.attrib, )
|
|
|
is_remove = True
|
|
|
elif 1 < total <= 2:
|
|
|
- # 逐条删除(查询出时间文本条数,从子节点边界范围进行查询、剔除,防止)
|
|
|
+ # 逐条删除(查询出时间文本条数,从子节点边界范围进行查询、剔除,防止过度删除)
|
|
|
for child in ancestor.iterchildren():
|
|
|
child_tag_date_total = tag_date_total(child)
|
|
|
if child_tag_date_total > 0:
|