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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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

New User

Nov 19, 2004, 1:59 PM

Views: 5153
Trying to get meta tags


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";

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.


(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