in reply to Unshortening t.co links

Can anyone point me toward resources for unshortening t.co links in Perl

My approach would be to look at WWW::Shorten::TinyURL which is what does the actual work in WWW::Shorten for TinyURL addresses. Then create a package based on that. This new package will be able to be used with WWW::Shorten.

At first glance it appears expanding the links will be very similar for t.co as it is for tinyurl.com

Replies are listed 'Best First'.
Re^2: Unshortening t.co links
by LanX (Saint) on Sep 08, 2023 at 12:17 UTC
Re^2: Unshortening t.co links
by marto (Cardinal) on Sep 08, 2023 at 15:21 UTC

    "My approach would be to look at WWW::Shorten::TinyURL"

    Pre coffee I made the same mistake myself :)>

    "At first glance it appears expanding the links will be very similar for t.co as it is for tinyurl.com"

    This isn't the case.