I was finally able to run the code without errors!! Turns out that I was missing some extra files in the HTML::Treebuilder folder.
However, I am still not able to print results on a text file. I am using your code, and at the end:
for my $out (@{$res->{out}}) { print F3 "$out->{title} $out->{info} $out->{info}\n"; }
to print the file (F3 is the output file). Which is similar to what I found on the CPAN website (example with the tweets). But I get something like "HASH(0x100d35ef0)" in my text file, and that's all: no data. What am I doing wrong?
Many, many, many thanks!!!
In reply to Re^4: Problem in using Web::Scraper, coming from HTML::TreeBuilder::XPath
by sbasbasba
in thread Problem in using Web::Scraper, coming from HTML::TreeBuilder::XPath
by sbasbasba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |