Skip to content

Instantly share code, notes, and snippets.

@kyanny

kyanny/gist:946249

Created Apr 28, 2011
Embed
What would you like to do?
webscraper
#!/home/kyanny/perl5/perlbrew/perls/perl-5.12.2/bin/perl
use strict;
use Web::Scraper;
use URI;
use YAML;
my $uri = URI->new("http://chat.studio.cx/o-cha/jsp/superbeginner/enter.php");
my $scraper = scraper {
process 'form input', 'list[]' => '@name';
};
my $result = $scraper->scrape($uri);
print YAML::Dump $result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment