Created
April 28, 2011 12:25
-
-
Save kyanny/946249 to your computer and use it in GitHub Desktop.
webscraper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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