From 20dbe31b49dd79519d70e4286aa9894cbd1e431b Mon Sep 17 00:00:00 2001 From: lededev Date: Fri, 29 Apr 2022 22:45:11 +0800 Subject: [PATCH] update UserAgent --- ADC_function.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ADC_function.py b/ADC_function.py index c827a59..76250fd 100644 --- a/ADC_function.py +++ b/ADC_function.py @@ -27,8 +27,7 @@ def getXpathSingle(htmlcode, xpath): return result1 -G_USER_AGENT = r'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36' - +G_USER_AGENT = r'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.133 Safari/537.36' def get_html(url, cookies: dict = None, ua: str = None, return_type: str = None, encoding: str = None): """