mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修改获取title语句
This commit is contained in:
parent
0e0d99e878
commit
cb5527b18e
@ -228,7 +228,7 @@ class BasePage(BaseParser):
|
|||||||
@property
|
@property
|
||||||
def title(self) -> Union[str, None]:
|
def title(self) -> Union[str, None]:
|
||||||
"""返回网页title"""
|
"""返回网页title"""
|
||||||
ele = self('x:html/head/title')
|
ele = self('x:/html/head/title')
|
||||||
return ele.text if ele else None
|
return ele.text if ele else None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user