urlexpand 0.0.3

Expand / Unshorten Shortened URL's
Documentation

URLEXPAND

Crates.io Documentation Build Status GitHub license

Expand / Unshorten Shortened URL's.

Example Usage

urlexpand = "0.0.3"

and then

use core::time::Duration;
use urlexpand::unshorten;

fn main() {
    let url = "https://bit.ly/3alqLKi";
    assert!(unshorten(url, Some(Duration::new(30,0))).is_some());   // with timeout
    assert!(unshorten(url, None).is_some());    // without timeout
}

Running the example

cargo run --example unshorten

Current list of URL Shortening services supported

  • bit.ly
  • buff.ly
  • b.link
  • chollo.to
  • cutt.ly
  • fa.by
  • goo.gl - Google Service has now stopped their url shortening service
  • gns.io
  • is.gd
  • ldn.im
  • rebrand.ly
  • rotf.lol
  • snipr.com
  • snipurl.com
  • snurl.com
  • t.co
  • tiny.cc
  • tinyurl.com
  • tiny.one
  • tr.im

Contribution

Please feel free to contribute by making pull requests or even bug fixes.
Thanks in advance.


License: MIT