From 29eb80b107b602880993541a38dc40ece18e32d6 Mon Sep 17 00:00:00 2001 From: g1879 Date: Thu, 23 Feb 2023 17:37:12 +0800 Subject: [PATCH] =?UTF-8?q?3.2.2=E4=BF=AE=E5=A4=8D=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E5=86=85=E6=9F=A5=E6=89=BE=E5=85=83=E7=B4=A0=E6=97=B6xpath?= =?UTF-8?q?=E5=86=85=E6=9C=89=E5=8D=95=E5=BC=95=E5=8F=B7=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=87=BA=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/chromium_element.py | 1 + README.md | 10 +++------- setup.py | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/DrissionPage/chromium_element.py b/DrissionPage/chromium_element.py index d8212fc..2d35b48 100644 --- a/DrissionPage/chromium_element.py +++ b/DrissionPage/chromium_element.py @@ -1285,6 +1285,7 @@ else{a.push(e.snapshotItem(i));}}""" else: return_txt = 'return e.singleNodeValue;' + xpath = xpath.replace(r"'", r"\'") js = f'function(){{var e=document.evaluate(\'{xpath}\',{node_txt},null,{type_txt},null);\n{for_txt}\n{return_txt}}}' return js diff --git a/README.md b/README.md index 4abf227..1300e25 100644 --- a/README.md +++ b/README.md @@ -34,15 +34,11 @@ python 版本:3.6 及以上 --- -# 🔥 新版预告 +# 🔥 新版介绍 -即将发布 3.2.0 版本将有相当大变化。对底层逻辑进行了梳理,修复了许多问题,提高了稳定性,也对用户 api 进行了整合。 +3.2 版已经发布。对底层逻辑进行了梳理,修复了许多问题,提高了稳定性,也对用户 api 进行了调整。 -功能开发已进入尾声,剩余一些细节问题须要调整。 - -作者正在进行一些测试,但难以面面俱到,欢迎有兴趣的大侠们 fork 过去体验,并提出宝贵的意见和建议。 - -详情查看:[新版预告](https://g1879.gitee.io/drissionpagedocs/next/) +详情查看:[新版介绍](https://g1879.gitee.io/drissionpagedocs/new/) --- diff --git a/setup.py b/setup.py index 75065bd..9b3a54b 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh: setup( name="DrissionPage", - version="3.2.1", + version="3.2.2", author="g1879", author_email="g1879@qq.com", description="Python based web automation tool. It can control the browser and send and receive data packets.",