Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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: (8)
As of 2015-07-02 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (46 votes), past polls