Hi,
I'm using WWW::Search with the backend WWW::Search::PubMed to try and search this site. The problem is that I get absolutely nothing when I run this:
#! c:\perl\bin use WWW::Search; $query = "lung cancer treatment"; $search = new WWW::Search('PubMed'); $search->native_query(WWW::Search::escape_query($query)); $search->maximum_to_retrieve(100); while (my $result = $search->next_result()) { $url = $result->url; $title = $result->title; $desc = $result->description; print "$result\n"; print "<a href=$url>$title<br>$desc<p>\n"; }
I know that the WWW::Search module recognizes the search engine because I checked out the content of $engine. This is a tough one because there's no error I can look into. The script runs but retrieves no data. When I do the search manually by going to the page I do get results.
Any suggestions?
In reply to problem with search module by dannoura
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |