fix: 同步web站点知识库 解析md 未按照标签解析

This commit is contained in:
shaohuzhang1 2024-02-29 12:02:29 +08:00
parent 298f638234
commit 8450b3598c

View File

@ -77,8 +77,8 @@ class Fork:
if self.selector_list is None or len(self.selector_list) == 0:
return str(bf)
params = reduce(lambda x, y: {**x, **y},
[{'class_': selector.replace('.', '')} if selector.startswith('.') else {
'id': selector.replace("#", "") if selector.startswith("#") else {'name': selector}} for
[{'class_': selector.replace('.', '')} if selector.startswith('.') else
{'id': selector.replace("#", "")} if selector.startswith("#") else {'name': selector} for
selector in
self.selector_list], {})
f = bf.find_all(**params)