jdlev has asked for the wisdom of the Perl Monks concerning the following question:
my $html_file = get("http://www.cbssports.com/nfl/injuries/pup"); die "Couldn't Get HTML File!" unless defined $html_file; #print $html_file; for($depth = 0; $depth < 100; $depth++) { for($count = 0; $count < 100; $count++) { my $te = HTML::TableExtract->new( depth => $depth, coun +t => $count ) or die(print "Unable To Extract Table"); $te->parse($html_file) or die(print "Unable to parse st +ring"); foreach $ts ($te->tables) { print "Table found at "; foreach $row ($ts->rows) { print @$row; } } #print "Depth = " . $depth . " Count = " . $count . "\n"; } } #print "Injured Players Have Been Deleted From Database \n \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why doesn't my scraper work?
by Old_Gray_Bear (Bishop) on Nov 20, 2013 at 00:01 UTC | |
|
Re: Why doesn't my scraper work?
by talexb (Chancellor) on Nov 19, 2013 at 22:09 UTC | |
by jdlev (Scribe) on Nov 19, 2013 at 22:25 UTC | |
by tangent (Parson) on Nov 19, 2013 at 23:00 UTC | |
by jdlev (Scribe) on Nov 19, 2013 at 22:58 UTC |