hxextract1
Extract selected elements from a html or xml file
Usage
hxextract [{-h | -?}]
[-x]
[-s
text]
[-e
text]
[-b
base]
element-or-class
[{-c
configfile | file-or-URL}]
Overview
hxextract outputs all elements with a certain name and/or class.
Input must be well-formed, since no HTML heuristics are applied.
Options
The following options are supported:
-
-x -
Use XML format conventions.
-stext-
Insert text at the start of the output.
-etext-
Insert text at the end of the output.
-bbase-
URL base
-cconfigfile-
Read @chapter lines from configfile (lines must be of the form "@chapter filename") and extract elements from each of those files.
-
-h, -? -
Print command usage.
Operands
The following operands are supported:
- element-or-class
-
The name of an element to extract (e.g., "H2"), or the name of a class preceded by "." (e.g., ".example") or a combination of both (e.g., "H2.example").
- file-or-URL
-
A file name or a URL. To read from standard input, use "-".
Environment
To use a proxy to retrieve remote files, set the environment variables http_proxy and ftp_proxy. E.g., http_proxy="http://localhost:8080/"
Releases
9 releases since Debian 6.0 (Squeeze); the text changed 2 times.