From 0e0d99e878b9e7b31aa1fb0132a257eec8a54d86 Mon Sep 17 00:00:00 2001 From: g1879 Date: Fri, 13 Aug 2021 13:54:48 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96title?= =?UTF-8?q?=E7=9A=84=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrissionPage/base.py b/DrissionPage/base.py index 1104e65..62b0a8d 100644 --- a/DrissionPage/base.py +++ b/DrissionPage/base.py @@ -228,7 +228,7 @@ class BasePage(BaseParser): @property def title(self) -> Union[str, None]: """返回网页title""" - ele = self('t:title') + ele = self('x:html/head/title') return ele.text if ele else None @property