Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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; });

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012986]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-02-28 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (397 votes). Check out past polls.