
Regent
New User
Nov 19, 2004, 1:59 PM
Post #1 of 5
(2415 views)
|
|
Trying to get meta tags
|
Can't Post
|
|
Hi, I need to grab a web page then print the title and meta description. I've already been able to print out the title using the following: my $h = HTTP::Headers->new; my $p = HTML::HeadParser->new($h); $p->parse($html) and print "not finished"; $p->header('Title'); print $h->title; print $h->title; But I can't figure out how to print out the meta description using HTTP::Headers and HTML::HeadParser. Is there any way to do this using these packages? I don't want to bother with regular expressions. Thanks.
(This post was edited by Regent on Nov 19, 2004, 2:04 PM)
|