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 πŸ‘‘


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