in reply to html parsing

Mojolicious contains an excellent tool kit that includes Mojo::UserAgent and Mojo::Dom. Here's a one liner:

perl -Mojo -E 'say g("perlmonks.org")->dom->at("title")->text'

Output:

PerlMonks - The Monastery Gates

Minimally, Mojolicious requires no additional external dependencies --just a relatively recent Perl. The distribution size is around 2MB once it's unpacked and installed, and it takes about a minute to install:

cpanm Mojolicious

...or via your preferred module installation technique.


Dave

Replies are listed 'Best First'.
Re^2: html parsing
by Anonymous Monk on Mar 22, 2017 at 15:07 UTC
    Mojo rocks.