Parsing HTML at the command line
- Node 7.6 or later
npm i -g docq
Usage: docq [options] <query> [file.html]
Parsing HTML at the command line
Options:
-V, --version output the version number
-t --type <type> Output type: (inner|outer|text|value)
-h, --help output usage information
$ wget -q -O - http://www.google.co.jp/ | docq 'input[name="biw"]'
<input name="biw" type="hidden">
Bug reports and pull requests are welcome on GitHub at https://github.com/freddiefujiwara/docq