Code Monkey home page Code Monkey logo

parse-tb-short-url's Introduction

Parse tb short url

examples:

Short Url Raw Commission Coupon
https://m.tb.cn/h.eKcH5Rd https://a.m.taobao.com/i568798650647.htm?price=59-89&sourceType=item&sourceType=item&suid=72b44bdf-d6f5-4d1f-91e5-7b03c53380ce&ut_sk=1.XYHiAFR54i8DAK%2FNzMVdPoGR_21646297_1571459619894.Copy.1&un=f5e9f099dd4a2cb80a62cb2c046d31df&share_crt_v=1&spm=a2159r.13376460.0.0&sp_tk=wqJ5RmJ4WXFjbEtzR8Ki&cpp=1&shareurl=true&short_name=h.eKcH5Rd https://item.taobao.com/item.htm?id=568798650647 X X
https://m.tb.cn/h.eKcxNzl https://a.m.taobao.com/i596905505758.htm?price=39&sourceType=item&sourceType=item&suid=241d1657-3d61-4179-9429-60231df7b0d9&ut_sk=1.XYHiAFR54i8DAK%2FNzMVdPoGR_21646297_1571459619894.Copy.1&un=f5e9f099dd4a2cb80a62cb2c046d31df&share_crt_v=1&spm=a2159r.13376460.0.0&sp_tk=4oKkQWRYQVlxY0xkTGPigqQ=&cpp=1&shareurl=true&short_name=h.eKcxNzl https://detail.tmall.com/item.htm?id=596905505758 X X
https://m.tb.cn/h.eprLxOs https://s.click.taobao.com/t?e=m%3D2%26s%3Dy%2FqqVfGY5tdw4vFB6t2Z2ueEDrYVVa64LKpWJ%2Bin0XKx5e2f4Vr4dX%2F76nQTDTJJUkCu4LW4fHXe4C8YaC2HD09XDiv3A89fLZOTIMkLp%2FPBWAU6431Luu5riQFVmmI6EVhCrU786tl87tRiSUn19Ywe6%2FtGg2%2FRSyiL934V8t7KfklguV4ISG6fyXqxcl00zsAzH1xYDH4SIz%2BVIb9tlB98qOXFFvZWzraR3nHwviPGJe8N%2FwNpGw%3D%3D&union_lens=lensId%3AAPP%401571460208%400b18304f_0c78_16de253d621_14a4%4001&traffic_flag=lm&scm=20140618.1.01010001.s101c6&spm=a21wq.8999005.555364628488.2&un=f5e9f099dd4a2cb80a62cb2c046d31df&share_crt_v=1&ut_sk=1.utdid_null_1571460208362.TaoPassword-Outside.lianmeng-app&sp_tk=77+lQnpkaFlxY3FiUlPvv6U=&cpp=1&shareurl=true&short_name=h.eprLxOs https://item.taobao.com/item.htm?id=555364628488 O X
https://m.tb.cn/h.ep6txvS https://s.click.taobao.com/t?e=m%3D2%26s%3D0nFasMGWqcVw4vFB6t2Z2ueEDrYVVa64K7Vc7tFgwiGx5e2f4Vr4dX%2F76nQTDTJJ%2FpU2SWJU0cLe4C8YaC2HD09XDiv3A89fLZOTIMkLp%2FPBWAU6431Luu5riQFVmmI6UbebXIbkcgA%2F1dpMUQ3ZvjnpmhTObRx2SFRIh0OtjeS1YAp%2BHH38Ivtr9wXnqKLHI1dGtQZ%2FssuWGkc9SxZy9k3O4wtQ3K90QzXKLGAALlHY6RsJ7tSx%2FSGFCzYOOqAQ&union_lens=lensId%3AAPP%401571460254%400b154dc1_0c7e_16de2548a3f_14a7%4001&traffic_flag=lm&scm=20140618.1.01010001.s101c6&spm=a21wq.8999005.603891285329.2&un=f5e9f099dd4a2cb80a62cb2c046d31df&share_crt_v=1&ut_sk=1.utdid_null_1571460254364.TaoPassword-Outside.lianmeng-app&sp_tk=77+lNVRCVVlxY3FibW/vv6U=&cpp=1&shareurl=true&short_name=h.ep6txvS https://detail.tmall.com/item.htm?id=603891285329 O X
https://m.tb.cn/h.eKcAtDb https://uland.taobao.com/coupon/edetail?e=cl3sfngxehQGQASttHIRqRVi5uxwmMrNzt8H5SH4UobbLaGB9uZG%2Bt5chu8yXGlj5CLqzfwBbnNCeupaGVuloe99xGyxAr9z819cieM8MLYDfeBzYGsrw2BMwzTKkPZRZJ2GXWoph3fwDr1HHMjNrGCBLf0Ce8vJQdUCsKS61xH3LTDo28QWQkbYLu1k1GIxVmu1M4uBeRyMOmm%2BVf6hv4G0cDpPxNmdUE9%2Bilvste%2BYX1J7GOXg59vxwBPd6WBN&traceId=0b5105c515714605134898002e4587&union_lens=lensId%3AAPP%401571460513%400b0b9125_0c8c_16de2587f03_1cdc%4001&traffic_flag=lm&scm=20140618.1.01010001.s101c6&spm=a21wq.8999005.531642121925.1&un=f5e9f099dd4a2cb80a62cb2c046d31df&share_crt_v=1&ut_sk=1.utdid_null_1571460513606.TaoPassword-Outside.lianmeng-app&sp_tk=77+lZWdwNllxY3NzT0vvv6U=&cpp=1&shareurl=true&short_name=h.eKcAtDb https://item.taobao.com/item.htm?id=531642121925 O O
https://m.tb.cn/h.ep6FtMT https://uland.taobao.com/coupon/edetail?e=kdrGV%2FV3P1QE%2BdAb1JoOOj4J%2B85FODMkPySc6kJusjLl43M3mIB1t6pG%2FgDQeExds0hZBYhyflvhXLQMGSsylLfDCpL7Je5d819cieM8MLYDfeBzYGsrw2BMwzTKkPZRZJ2GXWoph3fwDr1HHMjNrGCBLf0Ce8vJQdUCsKS61xH3LTDo28QWQkbYLu1k1GIxVmu1M4uBeRyMOmm%2BVf6hv%2F5OixsWaWIHNDF3T%2FuzxLLz7VRDRT4Ja5DNtBEEL6GujLCaoKysnwc3cAzCHgkepw%3D%3D&traceId=0b51061b15714605882338440eb713&union_lens=lensId%3AAPP%401571460588%400b151c5a_0caf_16de259a2f4_1631%4001&traffic_flag=lm&scm=20140618.1.01010001.s101c6&spm=a21wq.8999005.602362101964.2&un=f5e9f099dd4a2cb80a62cb2c046d31df&share_crt_v=1&ut_sk=1.utdid_null_1571460588348.TaoPassword-Outside.lianmeng-app&sp_tk=77+lSHFJZFlxY3RnQTLvv6U=&cpp=1&shareurl=true&short_name=h.ep6FtMT https://detail.tmall.com/item.htm?id=602362101964 O O

What's this?

A demo for getting the real url behind a taobao short url (like as "https://m.tb.cn/xxx").

Use case

Anywhere you need it.

Usage

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

Download

Binary files are here for Linux, Mac OS X and Windows:

https://github.com/zhanglianxin/parse-tb-short-url/releases

Thanks

Thanks all you guys.

parse-tb-short-url's People

Contributors

zhanglianxin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.