From ec28814449f199df9af2c60d453523a7b7b53163 Mon Sep 17 00:00:00 2001 From: lededev Date: Thu, 17 Feb 2022 17:18:41 +0800 Subject: [PATCH] update User-Agent --- ADC_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADC_function.py b/ADC_function.py index 1a64477..de36c73 100644 --- a/ADC_function.py +++ b/ADC_function.py @@ -25,7 +25,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/95.0.4638.54 Safari/537.36' +G_USER_AGENT = r'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36' # 网页请求核心 def get_html(url, cookies: dict = None, ua: str = None, return_type: str = None, encoding: str = None):