Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

以DHL为例:https://mydhlplus.dhl.com/cn/zh/tracking.html#/results?id=单号

方式一:

第一步请求abck(已过akamai)

通过接口通过接口(见文档:带abck的cookie1.75(接口) 获取带abck的cookie信息,该abck已过akamai可以直接使用 )获取带abck的cookie信息,该abck已过akamai可以直接使用

请求数据如下:

Code Block
{
	"appid": "填入appid",
	"jsUrl": "https://mydhlplus.dhl.com/hWSpQHIBF/AaJp4XYo/E_lfGeho/I0/J3iNNSXrYm5h/Pyd0AQ/HXM_VEQh/XnA"
}

...

方式二:(当方式一不能满足需求时):

第一步过ja3获取abck

通过接口通过接口(见文档:TLS代理(接口)获取_abck和bm_sz

请求数据如下

Code Block
{
	"appid": "填入appid",
	"method": "GET",
	"url": "https://mydhlplus.dhl.com/hWSpQHIBF/AaJp4XYo/E_lfGeho/I0/J3iNNSXrYm5h/Pyd0AQ/HXM_VEQh/XnA",
	"headers": {
		"accept": "*/*",
		"accept-encoding": "gzip, deflate, br",
		"accept-language": "zh-CN,zh;q=0.9"
	}
}

...

通过第一步获取cookie中的_abck和bm_sz,在后面的请求中需要加到请求cookie中。

1.先通过先通过(见文档:sensor_data1.75(接口)获取sensor_data数据

请求数据如下:

Code Block
{
	"appid": "填入appid",
	"abck": "C8643DBD680B3A9B06B6A3FB4FC96B5D~-1~YAAQbp7C3fKba2SCAQAAdxc4nwjlIf0SAG4mrOSYUtFjQjPX1iCxEHuXLyCDTl2Z1mJmXN98Xyk8qP00MI9JD4bMxN5RbC82AwpieBgmxKhn7S+WLNV2HE48iaLLHGBDJTAP7QuwbwbEKaqk8YWI08+9DTscV2/2XAcDMugfy83fX7O7tlktdje7OHbbn+CETt7c2xlPip0Kijw3Kzp3CjParRqg7n2CEVnfhQ8ns3GYHAI5oGfbmeqrUIr91S1gsfwlPzcJtoUlro9qV5hjVTFgWGJYSp7XT7+/qggPVRgdRSfRH1byyVuvjUV1MakUihptg4CTtAHDyOUNI4QmdsTKE/T8LOuhBK/KZBr+RhDG2YKR24M=~-1~-1~-1",
	"bmsz": "089CAFB49971B46B55B0C713526B0F59~YAAQbp7C3fOba2SCAQAAdxc4nxCGgnBcuIXw405DyBjDvDN7mmBRn6GukuphJj/M6xkfkUOgjeM6DyxZWmAnv9XAjKS++MmwOLTqP9lPpztSW9gjmOXyVLwBuEyevTF84NAWmU2gbH1tBzX0PPvfi/akg9p2Ci+/0uJCqAu1MvyL/LoNW3OxvOyHKQC8TOXphoERzQoAp7zwDPfg6J3m+Uxq73CmQxAXjc6As8Z2tsAEgF0ABaP8tNqNQRhvUkkGeR5rhSxLsemo4Ow/ZWxBSN2gTc8+ljgMod6kQM8TmyM=~3687224~4536631",
	"siteUrl": "https://mydhlplus.dhl.com/"
}

...

Code Block
{
	"code": "0",
	"msg": "成功",
	"sensorData": "7a74G7m23Vrp0o5c9364531.75-1,2,-94,-100,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36,uaend,12147,20030107,uk,Gecko,5,0,0,0,408560,2993535,1536,834,1536,864,1481,857,1481,,cpen:0,i1:0,dm:0,cwen:0,non:1,opc:0,fc:0,sc:0,wrc:1,isc:0,vib:1,bat:1,x11:0,x12:1,8329,0.359259944288,830246496767.5,0,loc:-1,2,-94,-131,Mozilla/5.0 (Windows;10.0.0;x86;64;) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36-1,2,-94,-101,do_en,dm_en,t_en-1,2,-94,-105,0,0,0,0,921,921,0;0,1,0,1,1138,1138,0;1,0,0,0,658,658,0;-1,2,-94,-102,0,0,0,0,921,921,0;0,1,0,1,1138,1138,0;1,0,0,0,658,658,0;-1,2,-94,-108,-1,2,-94,-110,0,1,255,718,439;1,1,296,713,441;2,1,314,708,438;3,1,324,705,434;4,1,341,703,434;5,1,358,700,438;6,1,408,699,445;7,1,413,697,444;8,1,452,691,446;9,1,487,692,441;10,1,511,687,439;11,1,515,685,439;12,1,524,683,433;13,1,565,676,428;14,1,603,674,428;15,1,630,672,428;16,1,640,667,423;17,1,650,666,420;18,1,692,665,417;19,1,733,661,418;20,1,764,656,413;21,1,790,654,412;22,1,807,650,411;23,1,851,648,404;24,1,895,647,402;25,1,926,641,402;26,1,962,639,402;27,1,980,637,397;28,1,1026,634,393;29,1,1076,630,392;30,1,1113,629,387;31,1,1149,623,386;32,1,1169,621,384;33,1,1192,619,383;34,1,1198,615,380;-1,2,-94,-117,-1,2,-94,-111,0,240,-1,-1,-1;-1,2,-94,-109,0,240,-1,-1,-1,-1,-1,-1,-1,-1,-1;-1,2,-94,-114,-1,2,-94,-103,-1,2,-94,-112,https://mydhlplus.dhl.com/-1,2,-94,-115,1,63197,32,240,240,0,63645,1695,0,1660492993535,4,17763,0,35,2960,0,0,1369,25089,0,C8643DBD680B3A9B06B6A3FB4FC96B5D~-1~YAAQbp7C3fKba2SCAQAAdxc4nwjlIf0SAG4mrOSYUtFjQjPX1iCxEHuXLyCDTl2Z1mJmXN98Xyk8qP00MI9JD4bMxN5RbC82AwpieBgmxKhn7S+WLNV2HE48iaLLHGBDJTAP7QuwbwbEKaqk8YWI08+9DTscV2/2XAcDMugfy83fX7O7tlktdje7OHbbn+CETt7c2xlPip0Kijw3Kzp3CjParRqg7n2CEVnfhQ8ns3GYHAI5oGfbmeqrUIr91S1gsfwlPzcJtoUlro9qV5hjVTFgWGJYSp7XT7+/qggPVRgdRSfRH1byyVuvjUV1MakUihptg4CTtAHDyOUNI4QmdsTKE/T8LOuhBK/KZBr+RhDG2YKR24M=~-1~-1~-1,34294,699,-453011004,30261693,PiZtE,37078,28,0,-1-1,2,-94,-106,-1,0-1,2,-94,-119,-1-1,2,-94,-122,0,0,0,0,1,0,0-1,2,-94,-123,-1,2,-94,-124,-1,2,-94,-126,-1,2,-94,-127,-1,2,-94,-70,73331404;1714644147;dis;,7;true;true;true;-480;true;24;24;true;false;-1-1,2,-94,-80,5376-1,2,-94,-116,8980647-1,2,-94,-118,127574-1,2,-94,-129,8f898f940186ca53690070bc21ded9693a8c88eb21db1d44afbc37c6dbce175b,1.2,87eb41d328f4efc2ba16c6f6450a173cf675ec7a7c1f50a6090ea6c91bac3f54,Google Inc.,ANGLE (NVIDIA GeForce GTX 1050 Ti Direct3D11 vs_5_0 ps_5_0),77864c0fe0b8476cb22fefd52cc6f262beec83811b4810148ce36819a76f5dcd,33-1,2,-94,-121,;19;6;0",
	"succ": true,
	"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36"
}

2.再通过再通过(见文档:TLS代理(接口)POST sensor_data数据

请求数据如下

Code Block
{
	"appid": "填入appid",
	"method": "POST",
	"url": "https://mydhlplus.dhl.com/hWSpQHIBF/AaJp4XYo/E_lfGeho/I0/J3iNNSXrYm5h/Pyd0AQ/HXM_VEQh/XnA",
	"headers": {
		"accept": "*/*",
		"accept-encoding": "gzip, deflate, br",
		"content-type": "application/json",
		"accept-language": "zh-CN,zh;q=0.9",
		"expires": "0",
		"cache-control": "no-store, must-revalidate",
		"cookie": "_abck=C8643DBD680B3A9B06B6A3FB4FC96B5D~-1~YAAQbp7C3fKba2SCAQAAdxc4nwjlIf0SAG4mrOSYUtFjQjPX1iCxEHuXLyCDTl2Z1mJmXN98Xyk8qP00MI9JD4bMxN5RbC82AwpieBgmxKhn7S+WLNV2HE48iaLLHGBDJTAP7QuwbwbEKaqk8YWI08+9DTscV2/2XAcDMugfy83fX7O7tlktdje7OHbbn+CETt7c2xlPip0Kijw3Kzp3CjParRqg7n2CEVnfhQ8ns3GYHAI5oGfbmeqrUIr91S1gsfwlPzcJtoUlro9qV5hjVTFgWGJYSp7XT7+/qggPVRgdRSfRH1byyVuvjUV1MakUihptg4CTtAHDyOUNI4QmdsTKE/T8LOuhBK/KZBr+RhDG2YKR24M=~-1~-1~-1; bm_sz=089CAFB49971B46B55B0C713526B0F59~YAAQbp7C3fOba2SCAQAAdxc4nxCGgnBcuIXw405DyBjDvDN7mmBRn6GukuphJj/M6xkfkUOgjeM6DyxZWmAnv9XAjKS++MmwOLTqP9lPpztSW9gjmOXyVLwBuEyevTF84NAWmU2gbH1tBzX0PPvfi/akg9p2Ci+/0uJCqAu1MvyL/LoNW3OxvOyHKQC8TOXphoERzQoAp7zwDPfg6J3m+Uxq73CmQxAXjc6As8Z2tsAEgF0ABaP8tNqNQRhvUkkGeR5rhSxLsemo4Ow/ZWxBSN2gTc8+ljgMod6kQM8TmyM=~3687224~4536631"
	},
	"body": "{\"sensor_data\":\"7a74G7m23Vrp0o5c9364531.75-1,2,-94,-100,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36,uaend,12147,20030107,uk,Gecko,5,0,0,0,408560,2993535,1536,834,1536,864,1481,857,1481,,cpen:0,i1:0,dm:0,cwen:0,non:1,opc:0,fc:0,sc:0,wrc:1,isc:0,vib:1,bat:1,x11:0,x12:1,8329,0.359259944288,830246496767.5,0,loc:-1,2,-94,-131,Mozilla/5.0 (Windows;10.0.0;x86;64;) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36-1,2,-94,-101,do_en,dm_en,t_en-1,2,-94,-105,0,0,0,0,921,921,0;0,1,0,1,1138,1138,0;1,0,0,0,658,658,0;-1,2,-94,-102,0,0,0,0,921,921,0;0,1,0,1,1138,1138,0;1,0,0,0,658,658,0;-1,2,-94,-108,-1,2,-94,-110,0,1,255,718,439;1,1,296,713,441;2,1,314,708,438;3,1,324,705,434;4,1,341,703,434;5,1,358,700,438;6,1,408,699,445;7,1,413,697,444;8,1,452,691,446;9,1,487,692,441;10,1,511,687,439;11,1,515,685,439;12,1,524,683,433;13,1,565,676,428;14,1,603,674,428;15,1,630,672,428;16,1,640,667,423;17,1,650,666,420;18,1,692,665,417;19,1,733,661,418;20,1,764,656,413;21,1,790,654,412;22,1,807,650,411;23,1,851,648,404;24,1,895,647,402;25,1,926,641,402;26,1,962,639,402;27,1,980,637,397;28,1,1026,634,393;29,1,1076,630,392;30,1,1113,629,387;31,1,1149,623,386;32,1,1169,621,384;33,1,1192,619,383;34,1,1198,615,380;-1,2,-94,-117,-1,2,-94,-111,0,240,-1,-1,-1;-1,2,-94,-109,0,240,-1,-1,-1,-1,-1,-1,-1,-1,-1;-1,2,-94,-114,-1,2,-94,-103,-1,2,-94,-112,https://mydhlplus.dhl.com/-1,2,-94,-115,1,63197,32,240,240,0,63645,1695,0,1660492993535,4,17763,0,35,2960,0,0,1369,25089,0,C8643DBD680B3A9B06B6A3FB4FC96B5D~-1~YAAQbp7C3fKba2SCAQAAdxc4nwjlIf0SAG4mrOSYUtFjQjPX1iCxEHuXLyCDTl2Z1mJmXN98Xyk8qP00MI9JD4bMxN5RbC82AwpieBgmxKhn7S+WLNV2HE48iaLLHGBDJTAP7QuwbwbEKaqk8YWI08+9DTscV2/2XAcDMugfy83fX7O7tlktdje7OHbbn+CETt7c2xlPip0Kijw3Kzp3CjParRqg7n2CEVnfhQ8ns3GYHAI5oGfbmeqrUIr91S1gsfwlPzcJtoUlro9qV5hjVTFgWGJYSp7XT7+/qggPVRgdRSfRH1byyVuvjUV1MakUihptg4CTtAHDyOUNI4QmdsTKE/T8LOuhBK/KZBr+RhDG2YKR24M=~-1~-1~-1,34294,699,-453011004,30261693,PiZtE,37078,28,0,-1-1,2,-94,-106,-1,0-1,2,-94,-119,-1-1,2,-94,-122,0,0,0,0,1,0,0-1,2,-94,-123,-1,2,-94,-124,-1,2,-94,-126,-1,2,-94,-127,-1,2,-94,-70,73331404;1714644147;dis;,7;true;true;true;-480;true;24;24;true;false;-1-1,2,-94,-80,5376-1,2,-94,-116,8980647-1,2,-94,-118,127574-1,2,-94,-129,8f898f940186ca53690070bc21ded9693a8c88eb21db1d44afbc37c6dbce175b,1.2,87eb41d328f4efc2ba16c6f6450a173cf675ec7a7c1f50a6090ea6c91bac3f54,Google Inc.,ANGLE (NVIDIA GeForce GTX 1050 Ti Direct3D11 vs_5_0 ps_5_0),77864c0fe0b8476cb22fefd52cc6f262beec83811b4810148ce36819a76f5dcd,33-1,2,-94,-121,;19;6;0\"}"
}

...

Code Block
{
  "results": [
    {
      "id": "6195806046",
      "label": "运单",
      "type": "airwaybill",
      "duplicate": false,
      "delivery": {
        "code": "101",
        "status": "delivered"
      },
      ....

说明:_

...

abck多次请求之后abck将会失效,需要通过(见文档:TLS代理(接口)POST sensor_data数据,来重新激活abck