From c7b83bfc0e9a2d0ea91c9be0ceac14e2cd09f8f0 Mon Sep 17 00:00:00 2001 From: lededev Date: Thu, 23 Sep 2021 22:20:25 +0800 Subject: [PATCH] update user agent --- ADC_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 ADC_function.py diff --git a/ADC_function.py b/ADC_function.py old mode 100644 new mode 100755 index 7374a60..199a26e --- a/ADC_function.py +++ b/ADC_function.py @@ -19,7 +19,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/91.0.4472.77 Safari/537.36' +G_USER_AGENT = r'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36' # 网页请求核心 def get_html(url, cookies: dict = None, ua: str = None, return_type: str = None):