Skip to content

Instantly share code, notes, and snippets.

@nipotan
Created October 2, 2009 07:59
Show Gist options
  • Save nipotan/199544 to your computer and use it in GitHub Desktop.
Save nipotan/199544 to your computer and use it in GitHub Desktop.
use strict;
use Web::Scraper;
use URI;
my $website = scraper {
process 'div#profile > address > ul > li > a', url => '@href';
result 'url';
};
my $res = $website->scrape(URI->new('http://twitter.com/foo_bar_baz'));
warn $res->as_string if $res;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment