From 1f60b2b8331a76990798c98581fe0baed49f916a Mon Sep 17 00:00:00 2001 From: g1879 Date: Wed, 2 Mar 2022 11:50:39 +0800 Subject: [PATCH] =?UTF-8?q?2.5.5=20=E4=BF=AE=E5=A4=8D=E5=B0=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/easy_set.py | 4 ++-- DrissionPage/session_page.py | 2 ++ setup.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/DrissionPage/easy_set.py b/DrissionPage/easy_set.py index 9f64251..d9e0581 100644 --- a/DrissionPage/easy_set.py +++ b/DrissionPage/easy_set.py @@ -275,8 +275,8 @@ def _get_chrome_path(ini_path: str = None, import winreg try: key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, - # r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe', - r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon\version', + r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe', + # r'HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon\version', reserved=0, access=winreg.KEY_READ) k = winreg.EnumValue(key, 0) winreg.CloseKey(key) diff --git a/DrissionPage/session_page.py b/DrissionPage/session_page.py index fbc7831..182ea4a 100644 --- a/DrissionPage/session_page.py +++ b/DrissionPage/session_page.py @@ -219,6 +219,8 @@ class SessionPage(BasePage): def download(self) -> DownloadKit: if self._download_kit is None: self._download_kit = DownloadKit(session=self.session, timeout=self.timeout) + self._download_kit.retry = self.retry_times + self._download_kit.interval = self.retry_interval return self._download_kit diff --git a/setup.py b/setup.py index b86c8c7..de81411 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="2.5.4", + version="2.5.5", author="g1879", author_email="g1879@qq.com", description="A module that integrates selenium and requests session, encapsulates common page operations.",