Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2016-09-26 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (478 votes). Check out past polls.