examples:
A demo for getting the real url behind a taobao short url (like as "https://m.tb.cn/xxx").
Anywhere you need it.
Usage: parse-tb-short-url [options...] <url>
Options:
-h this help
-ua string
set user-agent (default "Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 ChannelId(3) Nebula PSDType(1) AlipayDefined(nt:WIFI,ws:375|647|2.0) AliApp(AP/10.0.1.123008) AlipayClient/10.0.1.123008 Alipay Language/zh-Hans")
# based on the default ua
$ parse-tb-short-url https://m.tb.cn/h.eKcH5Rd https://m.tb.cn/h.eKcxNzl https://m.tb.cn/h.eprLxOs https://m.tb.cn/h.ep6txvS https://m.tb.cn/h.eKcAtDb https://m.tb.cn/h.ep6FtMT
a.m 568798650647 https://h5.m.taobao.com/awp/core/detail.htm?id=568798650647
a.m 596905505758 https://h5.m.taobao.com/awp/core/detail.htm?id=596905505758
s.click 555364628488 https://h5.m.taobao.com/awp/core/detail.htm?id=555364628488
s.click 603891285329 https://h5.m.taobao.com/awp/core/detail.htm?id=603891285329
uland 531642121925 https://h5.m.taobao.com/awp/core/detail.htm?id=531642121925
uland 602362101964 https://h5.m.taobao.com/awp/core/detail.htm?id=602362101964
Binary files are here for Linux, Mac OS X and Windows:
https://github.com/zhanglianxin/parse-tb-short-url/releases
Thanks all you guys.