#!/usr/bin/perl
use warnings;
use strict;
use LWP::UserAgent;
my @urls = qw(http://xrl.us/bepvnq
http://xrl.us/bepvnq);
my @locations;
open my $OUT, ">", "long_urls.txt";
my $ua=LWP::UserAgent->new;
foreach my $url (@urls) {
my $resp = $ua->get('http://xrl.us/bepvnq');
push @locations, $resp->previous->header('location');
}
print $OUT "$_\n" for @locations;
On windows, grab Strawberry Perl and run the script from the dos window perl scrape.plin the directory containing the script.
cpan WWW::Mechanizeand then run the utility script
mech-dump -links http://the.submission.page.com > unedited linksThen edit up the links to have ony the links you're interested in, insert into that list in the script above replacing the two urls in there, and you should be good.
You are not logged in, either login or create an account to post comments
posted by MasterShake at 11:43 PM on April 21