|
现在越来越流行网上购物了,很多小伙伴会去网购一些心仪的商品,接下来就是等快递了。
只要输入快递单号,就可以通过Power Query可以查询到相关快递信息了,上两个图,看看效果先。
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
- (快递单号 as number) as table=>
- let
- url="http://m.kuaidihelp.com/express/queryResult",
- content=Text.ToBinary("brand=&waybill="&Text.From(快递单号)),
- headers=[#"X-Requested-With"="XMLHttpRequest",#"Content-Type"="application/x-www-form-urlencoded; charset=UTF-8"],
- web= Json.Document(Binary.Buffer(Web.Contents(url,[Headers=headers,Content=content]))),
- table=if web[msg]="成功" then #table({"时间",web[data][brand_name]},List.Transform(web[data][list],each {Text.Replace([date],"<br/>"," "),[info]})) else #table({},{})
- in
- table
复制代码
- let
- 源 = 快递信息查询(82042688)
- in
- 源
复制代码
|
评分
-
1
查看全部评分
-
|