2020-01-20--中通快递post信息保存

发出的信息
POST https://hdgateway.zto.com/order_searchAddress HTTP/1.1
Host: hdgateway.zto.com
Connection: keep-alive
Content-Length: 23
Accept: /
Origin: https://www.zto.com
x-token: null
x-clientCode: pc
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.zto.com/express/expressCheck.html
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9

billCode=75327055544264


返回信息!
HTTP/1.1 200
Server: nginx
Date: Mon, 20 Jan 2020 10:26:20 GMT
Content-Type: application/json;charset=UTF-8
Connection: keep-alive
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://www.zto.com
X-Application-Context: application:prd
Content-Length: 304

{"result":{"receiverAddress":"人民政府","senderAddress":"人民政府","senderCounty":"盘山县","senderProvince":"辽宁省","receiverProvince":"上海","receiverCounty":"奉贤区","receiverCity":"上海市","senderCity":"盘锦市"},"message":"获取地址成功","status":true,"statusCode":null}

POST https://hdgateway.zto.com/WayBill_GetDetail HTTP/1.1
Host: hdgateway.zto.com
Connection: keep-alive
Content-Length: 23
Accept: /
Origin: https://www.zto.com
x-token: null
x-clientCode: pc
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.zto.com/express/expressCheck.html
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9

billCode=75327055544264

HTTP/1.1 200
Server: nginx
Date: Mon, 20 Jan 2020 10:26:20 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 2518
Connection: keep-alive
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://www.zto.com
X-Application-Context: application:prd

{"result":{"prescriptionStatus":2,"logisticsRecord":[[{"date":"2020-01-09","country":null,"internationalPieces":{"optReasonEn":"Arrival at inward office of exchange.","isExport":null,"siteName":null,"optReason":null,"dispCount":1,"dispNoCome":false},"signMan":null,"operateUserPhone":"13386815067","scanDate":"2020-01-09 17:51:30","scanSite":{"isCenter":true,"code":"42700","province":"辽宁省","city":"盘锦市","phone":"0427-2209547、0427-2209508","name":"盘锦中转","prov":"辽宁省"},"sendPiecesNum":0,"isSendNoCome":false,"operateUser":"盘锦中转盘锦","stateDescription":"【盘锦市】 快件已经到达 【盘锦中转】","scanType":"到件","problemItemDescription":"","upOrDownSiteInfo":{"isCenter":false,"code":"42712","province":"辽宁省","city":"盘锦市","phone":"024-31515455","name":"盘锦中转市场部","prov":"辽宁省"}},{"date":"2020-01-09","country":null,"internationalPieces":{"optReasonEn":"Departure from inward office of exchange.","isExport":null,"siteName":null,"optReason":null,"dispCount":1,"dispNoCome":false},"signMan":null,"operateUserPhone":"13364255067","scanDate":"2020-01-09 17:43:26","scanSite":{"isCenter":false,"code":"42712","province":"辽宁省","city":"盘锦市","phone":"024-31515455","name":"盘锦中转市场部","prov":"辽宁省"},"sendPiecesNum":0,"isSendNoCome":false,"operateUser":"众聚德","stateDescription":"【盘锦市】 快件离开 【盘锦中转市场部】 已发往 【盘锦中转】","scanType":"发件","problemItemDescription":"","upOrDownSiteInfo":{"isCenter":true,"code":"42700","province":"辽宁省","city":"盘锦市","phone":"0427-2209547、0427-2209508","name":"盘锦中转","prov":"辽宁省"}},{"date":"2020-01-09","country":null,"internationalPieces":{"optReasonEn":"Parcel scanned by site.","isExport":null,"siteName":null,"optReason":null,"dispCount":1,"dispNoCome":false},"signMan":null,"operateUserPhone":"13364255067","scanDate":"2020-01-09 17:32:29","scanSite":{"isCenter":false,"code":"42712","province":"辽宁省","city":"盘锦市","phone":"024-31515455","name":"盘锦中转市场部","prov":"辽宁省"},"sendPiecesNum":0,"isSendNoCome":false,"operateUser":"众聚德","stateDescription":"【盘锦市】 【盘锦中转市场部】(024-31515455) 的 众聚德(13364255067) 已揽收","scanType":"收件","problemItemDescription":"","upOrDownSiteInfo":null}]],"billPrescription":"0天0小时","billCode":"75327055544264"},"message":"快递信息查询成功","status":true,"statusCode":null}

上面这一堆数据,看起来真的太乱了,层次很多。结果用json.cn这个网站处理,就发现了,规律很民心啊嘛!


image.png

里面红色框的就是我想要的,然后用正则提取就可以!so easy!

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 215,723评论 6 498
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,003评论 3 391
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 161,512评论 0 351
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 57,825评论 1 290
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,874评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,841评论 1 295
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,812评论 3 416
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,582评论 0 271
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,033评论 1 308
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,309评论 2 331
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,450评论 1 345
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,158评论 5 341
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,789评论 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,409评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,609评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,440评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,357评论 2 352

推荐阅读更多精彩内容

  • 我用fiddler抓取到的数据---这里整理一下。 YT4306427009445 POST https://ww...
    heiqimingren阅读 802评论 0 1
  • 大家好,我是IT修真院成都分院第7期的学员韩建名,一枚正直纯洁善良的WEB前端程序员。 今天给大家带来的是:简述a...
    inh_阅读 502评论 0 1
  • 早晨一醒来,看到外面灰暗的天空,阴雨绵绵,雨涵同时也醒来了。穿戴好衣服,她问,妈妈还有多久过年啊,我说还两个多月吧...
    潘雨涵妈妈阅读 186评论 0 2
  • 再一次自己睡在大舅的楼上。蓦然想到十几年前,欢姐盼姐上初中,我最喜欢跟在她们后面。就这样跟着就很开心。她们会...
    c7c33ec23477阅读 286评论 0 1
  • 昨天萱休息,带她去修复身体,回来,重重的包交给她,人家不愿意,提了一阵开始抗议:这么重的包干嘛给我提啊? 宝啊,不...
    小萱妈阅读 112评论 0 0