Expand / Unshorten an exhaustive list of Shortened URL's.
- async
urlexpand = "0.2.3"and then
use std::time::Duration;
use urlexpand::unshorten;
fn main() {
let url = "https://bit.ly/3alqLKi";
assert!(unshorten(url, Some(Duration::from_secs(10))).await.is_ok()); // with timeout
assert!(unshorten(url, None).await.is_ok()); // without timeout
}- blocking
urlexpand = { version = "0.2.0", features = ["blocking"] }and then
use std::time::Duration;
use urlexpand::unshorten;
fn main() {
let url = "https://bit.ly/3alqLKi";
assert!(unshorten_blocking(url, Some(Duration::from_secs(10))).is_ok()); // with timeout
assert!(unshorten_blocking(url, None).is_ok()); // without timeout
}cargo run --example unshorten https://bit.ly/3alqLKiadf.ly- Adflyadfoc.us- AdFocusamzn.to- Amazonatominik.com- part of Adf.lyay.gy- part of Adf.lyb.link- BLINKbhpho.to- BH Photo & Videobit.ly- Bitly Url Shortnerbit.do- Bitdobn.gy- BNGYbranch.io- Branch.iobuff.ly- Buffer URL Shortnerceesty.com- part of sh.stchollo.to- Chollo Ecommercecli.re- Capsulinkcli.fm- Capsulinkcutt.ly- Cuttlycutt.us- Cutt usdb.tt- Dropboxf.ls- Free Link Shortenerfa.by- part of rebrand.lyfb.me- Facebookflip.it- Flipboardfumacrom.com- part of Adf.lygit.io- Githubgeni.us- Genius Linkgoo.gl- Google Service has now stopped their url shortening servicegns.io- part of trim (tr.im)hmm.rs- HMM.RSht.ly- part of Hootsuitehyperurl.co- SmartUrl.Itity.im- ity.im (it'-ee-i-am)intamema.compart of Adf.lyis.gd- IS GDj.gs- part of Adf.lyj.mp- part of Bitlykutt.it- Kuttldn.im- part of trim (tr.im)linklyhq.com- Linkly HQmicroify.com- part of Adf.lymzl.la- Mozilla Orgnmc.sg- instra corporation ptynowlinks.net- Now Linksow.ly- part of Hootsuiteprf.hn- Partnerizeplu.sh- Plushq.gs- part of Adflyqr.ae- Quoraqr.net- QR Code URL shortner & generatorrebrand.ly- Rebrandlyrb.gy- RBGY Free URL Shortnerrlu.ru- RLU.RUrotf.lol- part of tinyurl.coms.coop- SCOOPs.id- SID (home.s.id)sh.st- shorte.stsoo.gd- Soo.Gdshortcm.xyz- part of SHORT.IOshort.gy- SHORT.IO Serviceshortcm.xyz- ShortCmshorturl.at- ShortURL Atsmu.sg- Singapore Management Universitysmq.tc- part of bit.lysnip.ly- Sniply.iosnipr.comsnipurl.comsnurl.comsplit.to- Linksplitsurl.li- Hyperhost (Secom.com.ua)t.co- Twittert.ly- T.LY Link Shortenert2m.io- T2M aka "Text to Marketing" (t2mio.com)tiny.cc- TinyCCtiny.pl- TinyPLtinyium.com- part of Adf.lytinyurl.com- TinyURLtiny.one- part of tinyurl.comtny.im- TNY.IMtny.sh- Linksplittr.im- trim (tr.im) by RedLotustrib.al- Tribal links shortneru.to- U TOv.gd- V GDvirg.in- Virginvzturl.com- Vzt URLwaa.ai- Akari Link Shortnerwashex.am- part of bit.lyx.co- GoDaddy URL Shortner (currently shutdown)y2u.be- YouTube URL Shortner by Firewrench inc.yourwish.es- Your Wisheszpr.io- Zapier
Please feel free to contribute by making pull requests or even bug fixes.
Thanks in advance.
License: MIT