HTML::ListScraper::Tag - sequence item found by HTML::ListScraper
All documented methods are simple accessors, taking no arguments and leaving the HTML::ListScraper::Tag object unchanged.
HTML::ListScraper::Tag
Tag name. HTML::ListScraper extends the HTML::Parser convention of naming tags in lowercase: closing tags are identified by a prepended '/'. After that, the name itself consists of ASCII letters and numbers. In case your input veers rather far from HTML, tags can also contain '-' and ':', but no more exotic characters. Empty name is not allowed. Angle brackets are not part of the name - if you need them, you can always add them when formatting HTML::ListScraper output.
HTML::ListScraper
Tag position (zero-based).
Value of the href attribute, if the parsed tag had a href attribute (with non-empty value). Otherwise, undef.
href
undef
Text following the tag, if any. Note that even closing tags can have associated text, although in well-formed HTML, that text really belongs under some previous opening tag.
To install HTML::ListScraper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::ListScraper
CPAN shell
perl -MCPAN -e shell install HTML::ListScraper
For more information on module installation, please visit the detailed CPAN module installation guide.