| 1 |
NAME |
| 2 |
|
| 3 |
Catmandu::HTML - Modules for handling HTML data within the Catmandu |
| 4 |
framework |
| 5 |
|
| 6 |
SYNOPSIS |
| 7 |
|
| 8 |
Command line client catmandu: |
| 9 |
|
| 10 |
catmandu convert HTML to JSON < ex/test.html > data/test.json |
| 11 |
|
| 12 |
catmandu convert JSON to HTML < data/test.json > ex/test.html |
| 13 |
|
| 14 |
# Keep the text |
| 15 |
curl -s http://librecat.org | |
| 16 |
catmandu convert HTML to Text --fix "html_text()" |
| 17 |
|
| 18 |
# Filter out the anchors |
| 19 |
curl -s http://librecat.org | |
| 20 |
catmandu convert HTML to Text --fix "html_filter_tag(a); html_text(join:\"\n\")" |
| 21 |
|
| 22 |
# Filter out the meta tags as YAML |
| 23 |
curl -s http://librecat.org | |
| 24 |
catmandu convert HTML to YAML --fix "html_filter_tag(meta, group_by:name)" |
| 25 |
|
| 26 |
See documentation of modules for more examples. |
| 27 |
|
| 28 |
AVAILABLE MODULES |
| 29 |
|
| 30 |
Catmandu::Exporter::HTML |
| 31 |
|
| 32 |
Serialize HTML data |
| 33 |
|
| 34 |
Catmandu::Importer::HTML |
| 35 |
|
| 36 |
Parse HTML data |
| 37 |
|
| 38 |
Catmandu::Fix::html_filter_tag |
| 39 |
|
| 40 |
Filter HTML by name and optional group them |
| 41 |
|
| 42 |
Catmandu::Fix::html_filter_type |
| 43 |
|
| 44 |
Filter HTML by type |
| 45 |
|
| 46 |
Catmandu::Fix::html_text |
| 47 |
|
| 48 |
Select only the literal text values from the HTML |
| 49 |
|
| 50 |
SEE ALSO |
| 51 |
|
| 52 |
This module is based on Catmandu |
| 53 |
|
| 54 |
AUTHORS |
| 55 |
|
| 56 |
Patrick Hochstenbach, patrick.hochstenbach at ugent.be |
| 57 |
|
| 58 |
COPYRIGHT AND LICENSE |
| 59 |
|
| 60 |
The Perl software is copyright (c) 2018 by Patrick Hochstenbach. This |
| 61 |
is free software; you can redistribute it and/or modify it under the |
| 62 |
same terms as the Perl 5 programming language system itself. |
| 63 |
|