WWW::Shorten::ShadyURL - Perl interface to shadyurl.com
use WWW::Shorten::ShadyURL; use WWW::Shorten 'ShadyURL'; $shady_url = makeashorterlink( $long_url ); $orig_url = makealongerlink( $shady_url );
A Perl interface to the web site shadyurl.com. ShadyURL simply maintains a database of long URLs, each of which has a unique identifier, that appears at first glance "shady", but resolves just like any other shortener service. However, the URLS may not be actually shorter, just sketchier.
Their motto is:
Don't just shorten your URL, make it suspicious and frightening.
I am not affiliated with them. See http://shadyurl.com/ for more information.
The function makeashorterlink will connect to the ShadyURL web site and attempt to create an alias to the URL supplied.
makeashorterlink
$url [required] - The URL you wish to shorten.
$shorten [optional] - Set to a TRUE value to actually create a short link.
TRUE
The ShadyURL service creates links that appear sketchy, there is no guarantee that they will actually be shorter than the supplied URL. This attempts to make them shorter, but they will then appear less dubious.
The function makealongerlink does the reverse. makealongerlink will accept as an argument a full ShadyURL link.
makealongerlink
If anything goes wrong, then either function will return undef.
undef
makeashorterlink, makealongerlink
See the main WWW::Shorten docs.
Note: I am not affiliated with shadyurl.com. If you have problems with their service, contact them.
Jason McManus <infidel AT cpan.org>
Based on WWW::Shorten by Dave Cross <dave AT dave.org.uk>
WWW::Shorten, perl, http://shadyurl.com/
To install WWW::Shorten::ShadyURL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shorten::ShadyURL
CPAN shell
perl -MCPAN -e shell install WWW::Shorten::ShadyURL
For more information on module installation, please visit the detailed CPAN module installation guide.