This commit is contained in:
g1879 2021-08-11 11:46:23 +08:00
parent 94111d08a5
commit b24b592f30

View File

@ -398,7 +398,7 @@ def execute_session_find(page_or_ele,
page_or_ele = page_or_ele.inner_ele
else: # 传入的是SessionPage对象
page = page_or_ele
page_or_ele = fromstring(re.sub(r' ?', ' ', page_or_ele.response.text))
page_or_ele = fromstring(sub(r' ?', ' ', page_or_ele.response.text))
try:
# 用lxml内置方法获取lxml的元素对象列表