Skip to content

Command line Interface

fizx edited this page Sep 13, 2010 · 2 revisions

There is a simple command line interface, and a crawler provided via the csvget project

Simple command line:

sh$ parsley --help
Usage: parsley [OPTION...] PARSELET FILE_TO_PARSE
Parsley is a parselet parser.

  -i, --include=FILE         Include the contents of FILE in the compiled XSLT
  -n, --no-prune             Don't prune empty subtrees
  -N, --no-collate           Don't collate array entries
  -o, --output=FILE          Output to FILE instead of standard output
  -s, --sg-wrap              Wrap text nodes for SelectorGadget compatibility
  -U, --user-agent=USER_AGENT   Value of HTTP User-Agent header
  -x, --input-xml            Use the XML parser (not HTML)
  -X, --output-xml           Output XML (not JSON)
  -z, --no-net               Disable ftp and http access for parselets
  -Z, --no-filesystem        Disable filesystem access for parselets
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Report bugs to <[email protected]>.

See the sample parselet, html page, or output.

Clone this wiki locally