Catmandu::HTML(3pm)
π Catmandu::HTML π
okay bestie, so this is Catmandu::HTML (that's the Catmandu::HTML(3pm) page, yes the whole vibe) β literally the module squad for handling HTML data inside the Catmandu framework. no cap. π¦
β¨ NAME β¨
Catmandu::HTML β modules for handling HTML data within the Catmandu framework. that's it, that's the whole name, iconic π
πΈ SYNOPSIS πΈ
so like, the command line client is called catmandu (main character energy fr) and here's how you use it:
catmandu convert HTML to JSON < ex/test.html > data/test.json
catmandu convert JSON to HTML < data/test.json > ex/test.html
# Keep the text
curl -s http://librecat.org |
catmandu convert HTML to Text --fix "html_text()"
# Filter out the anchors
curl -s http://librecat.org |
catmandu convert HTML to Text --fix "html_filter_tag(a); html_text(join:\"\n\")"
# Filter out the meta tags as YAML
curl -s http://librecat.org |
catmandu convert HTML to YAML --fix "html_filter_tag(meta, group_by:name)"
see documentation of modules for more examples, okay bestie? there's more where that came from π
π AVAILABLE MODULES π
the squad, the lineup, the icons:
Catmandu::Exporter::HTMLβ serialize HTML data. it takes your data and makes it HTML, slay πCatmandu::Importer::HTMLβ parse HTML data. it reads the HTML and gets it into your data πCatmandu::Fix::html_filter_tagβ filter HTML by name and optionally group them β¨Catmandu::Fix::html_filter_typeβ filter HTML by type, simple as π¦Catmandu::Fix::html_textβ select only the literal text values from the HTML, no tags, just words, periodt π
π SEE ALSO π
this module is based on Catmandu. yes, the mothership. π«Ά
π AUTHORS π
Patrick Hochstenbach, patrick.hochstenbach at ugent.be β king behavior, honestly π
π COPYRIGHT AND LICENSE π
the Perl software is copyright (c) 2018 by Patrick Hochstenbach. this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, it's free, we love that for us π
and that's the page bestie!! it's from perl v5.36.0, dated 2023-02-14 β yeah, a Valentine's Day release, romance was in the air, and the manual page was Catmandu::HTML(3pm) πΈπ mwah, bye!! π§β¨
π¦ where this page comes from
- debian trixie: libcatmandu-html-perl 0.02+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-html-perl 0.02+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-html-perl 0.02+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-html-perl 0.02+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms