Created
September 17, 2009 19:25
-
-
Save EvanCarroll/188669 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature ':5.10'; | |
use LWP::UserAgent; | |
use HTML::TreeBuilder; | |
my $ua = LWP::UserAgent->new; | |
my $resp = $ua->get('http://www.usgbc.org/LEED/Project/CertifiedProjectList.aspx'); | |
die 'Certainly no longer valid' unless $resp->is_success; | |
## custom Post Back | |
my $root = HTML::TreeBuilder->new_from_content( $resp->content ); | |
## This should work. | |
$root->look_down( name => '__EVENTVALIDATION' )->look_up( '_tag' => 'form' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment