URLEXPAND

Crates.io Documentation Build Status GitHub license

Expand / Unshorten an exhaustive list of Shortened URL's.

Example Usage

and then

```rust use std::time::Duration; use urlexpand::unshorten;

fn main() { let url = "https://bit.ly/3alqLKi"; assert!(unshorten(url, Some(Duration::fromsecs(10))).await.isok()); // with timeout assert!(unshorten(url, None).await.is_ok()); // without timeout } ```

and then

```rust use std::time::Duration; use urlexpand::unshorten;

fn main() { let url = "https://bit.ly/3alqLKi"; assert!(unshortenblocking(url, Some(Duration::fromsecs(10))).isok()); // with timeout assert!(unshortenblocking(url, None).is_ok()); // without timeout } ```

Running the example

bash cargo run --example unshorten https://bit.ly/3alqLKi

Current list of URL Shortening services supported

Contribution

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


License: MIT