Hi,
I have simple q for you. How do u use HTML::PARSER to
extract some information. I have made a search using
WWW::Search and received a list of URLs.Meaning, the
following are extraction from my codes:
my $search = new WWW::Search ('AltaVista');
$search->maximum_to_retrieve(10);
$search->native_query
(WWW::Search::escape_query($word));
while ( $results = $search->next_result()) {
$n++;
print $q->a({href=>$results->url},
$results->url);
How do I use HTML::Parser to visit each urls.I need to
extract some lines in each pages.
Pls shed some light on this since I really can't
figure out this.
Thanks for your kind attention
p/s: Pls don't ask me to visit the perldoc
HTML::Parser or HTML::TreeBuider. I have done that and
but I can't understand how to link the results to the
HTML::Parser.
Rgds,
Edit kudra,
2001-10-22
Changed title so it doesn't match module name
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.