Skip to content

Instantly share code, notes, and snippets.

@xatier
Created May 8, 2013 04:47
Show Gist options
  • Save xatier/5538258 to your computer and use it in GitHub Desktop.
Save xatier/5538258 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use 5.014;
use URI::Title;
say URI::Title::title('https://twitter.com/al3x/status/1039647490');
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$mech->get('https://twitter.com/al3x/status/1039647490');
say $mech->title;
use LWP::Simple;
say ( get('https://twitter.com/al3x/status/1039647490')
=~ m{<TITLE>(.*?)</TITLE>}gism
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment