一、USER_agent 解释
USER_AGENT 是一个 HTTP 请求头字段,它包含了有关发出请求的客户端(通常是浏览器)的信息。
USER_AGENT 字符串描述了客户端的类型(如浏览器名称和版本)、操作系统、移动设备型号等详细信息。服务器端可以通过解析 USER_AGENT 来为不同的客户端提供适当的内容,或者进行统计分析、识别爬虫等操作。
例如,常见的 USER_AGENT 可能包含类似于 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" 这样的字符串,其中说明了浏览器是 Chrome ,运行在 Windows 10 64 位操作系统上。
二、今日头条小程序
toutiaomicroapp
三、抖音小程序
Mozilla/5.0 (Linux; Android 10; V1911A Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/83.0.4103.106 Mobile Safari/537.36 aweme/28.8.0 ToutiaoMicroApp/3.15.0 PluginVersion/28809022 BytedanceWebview/d8a21c6
四、火狐浏览器
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
五、Google chrom
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
六、微信
Mozilla/5.0 (Linux; Android 14; V2270A Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2553 MicroMessenger/8.0.50.2701(0x28003257) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64
七、支付宝
Mozilla/5.0 (Linux; Android 14; V2270A Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/105.0.5195.148 MYWeb/0.11.0.240806152754 UWS/3.22.2.9999 UCBS/3.22.2.9999_220000000000 Mobile Safari/537.36 NebulaSDK/1.8.100112 Nebula AlipayDefined(nt:WIFI,ws:360|0|3.0,ac:sp) AliApp(AP/10.6.28.8000) AlipayClient/10.6.28.8000 Language/zh-Hans useStatusBar/true isConcaveScreen/false Region/CNAriver/1.0.0 DTN/2.0
八、微信小程序
Mozilla/5.0 (Linux; Android 14; V2270A Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.188 Mobile Safari/537.36 XWEB/1260097 MMWEBSDK/20240501 MMWEBID/2553 MicroMessenger/8.0.50.2701(0x28003257) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wx95c7f0189e457bfc
九、支付宝小程序
Mozilla/5.0 (Linux; Android 14; V2270A Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/105.0.5195.148 MYWeb/0.11.0.240806152754 UWS/3.22.2.9999 UCBS/3.22.2.9999_220000000000 Mobile Safari/537.36 NebulaSDK/1.8.100112 Nebula AlipayDefined(nt:WIFI,ws:360|0|3.0,ac:sp) AliApp(AP/10.6.28.8000) AlipayClient/10.6.28.8000 Language/zh-Hans useStatusBar/true isConcaveScreen/false Region/CNAriver/1.0.0 MiniProgram APXWebView DTN/2.0