Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: HTML Parser suggestions

by moritz (Cardinal)
on Jan 11, 2013 at 21:44 UTC ( #1012986=note: print w/ replies, xml ) Need Help??


in reply to HTML Parser suggestions

I kinda like Mojo::DOM. It allows you to search for HTML tags with CSS selectors.

A typical example would be

use 5.010; use Mojo::DOM; my $dom = Mojo::DOM->new($html_string); $dom->find('div.your_attribute)->each(sub { say shift->all_text; });


Comment on Re: HTML Parser suggestions
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (18)
As of 2014-10-20 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (89 votes), past polls