develooper Front page | perl.libwww | Postings from May 2013

New feature in module HTML::HeadParser

From:
Stefan Berger
Date:
May 14, 2013 18:00
Subject:
New feature in module HTML::HeadParser
Message ID:
049CADE0-5192-4D0A-8EE3-F6E21DF4BAFC@berger.net
Hi,
it would be nice if the module can parse meta-tags with the attribute 'property' like:

<meta property="og:type" content="university">

that come from open graph, Facebook in the module HTML::HeadParser
I know this is not standard, but they exist in many html documents….


A possible solution could be in 'sub start':

if ($attr->{name}) { $key = "X-Meta-\u$attr->{name}"; }
elsif ($attr->{property}) { $key = "X-Meta-\u$attr->{property}"; }
elsif ($attr->{charset}) {



Thanks for your work,
kind reagards Stefan

--
------------------------------------------------------------
Stefan Berger + Monica Moran
Wiesenweg 11
4144 Arlesheim
------------------------------------------------------------









nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About