修改获取title语句

This commit is contained in:
g1879 2021-08-13 22:05:05 +08:00
parent 0e0d99e878
commit cb5527b18e

View File

@ -228,7 +228,7 @@ class BasePage(BaseParser):
@property
def title(self) -> Union[str, None]:
"""返回网页title"""
ele = self('x:html/head/title')
ele = self('x:/html/head/title')
return ele.text if ele else None
@property