Skip to content

Instantly share code, notes, and snippets.

@kyanny
Created April 28, 2011 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyanny/946249 to your computer and use it in GitHub Desktop.
Save kyanny/946249 to your computer and use it in GitHub Desktop.
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