docq
Parsing HTML at the command line
Requirements
- Node 7.6 or later
Installation
npm i -g docq
Usage
wget -O - http://www.google.co.jp/ | docq 'input[name="biw"]' --2017-08-14 16:27:19-- http://www.google.co.jp/ Resolving www.google.co.jp ... 172.217.25.227, 2404:6800:4004:81b::2003 Connecting to www.google.co.jp |172.217.25.227|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘STDOUT’ - [ <=> ] 10.36K --.-KB/s in 0s 2017-08-14 16:27:19 - written to stdout [10613] <input name="biw" type="hidden">
FAQ
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/freddiefujiwara/docq