in reply to Reading particular information from Html page and skipping the page that doesn't contain that information

use Web::Query 'wq'; use YAML::XS qw(DumpFile); my @ports = … my %results; for my $port (@ports) { my $w = wq "http://wwwdev.ebi.ac.uk/interpro/ISearch?query=$port"; $results{$port} = [$w->find('.prot_fam a')->text] if $w->find('.prot_fam a')->size; } DumpFile 'results.txt', \%results;
See http://stackoverflow.com/questions/10655207/perl-extending-code-to-get-particular-information-from-website for earlier discussion.
  • Comment on Re: Reading particular information from Html page and skipping the page that doesn't contain that information
  • Download Code