A cool command-line tool: parse and print html

Courtesy of Nat Torkington at O'Reilly 1. pup <https://github.com/EricChiang/pup> — commandline tool for parsing and processing HTML. https://github.com/EricChiang/pup

On Wed, Sep 17, 2014 at 11:30 AM, David Collier-Brown <davec-b@rogers.com> wrote:
Courtesy of Nat Torkington at O'Reilly
1. pup <https://github.com/EricChiang/pup> — commandline tool for parsing and processing HTML.
An alternate method of doing similar selector-based tricks from a shell, using node.js & the cheerio module: http://strongloop.com/strongblog/node-js-v0-12-shell-programming-synchronous... Note: this currently requires node.js unstable; the next stable release is due out soon though. =) Also, syntax highlighting in the output would likely need to be added, perhaps using the ansi module (or similar): https://github.com/TooTallNate/ansi.js -- Scott Elcomb @psema4 http://psema4.com/pubkey.txt http://www.pirateparty.ca/
participants (2)
-
David Collier-Brown
-
Scott Elcomb