CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Trying to get meta tags: Edit Log



Regent
New User

Nov 19, 2004, 1:59 PM


Views: 2813
Trying to get meta tags

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)


Edit Log:
Post edited by Regent (New User) on Nov 19, 2004, 2:04 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives