[GTALUG] A cool command-line tool: parse and print html
Scott Elcomb
psema4 at gmail.com
Wed Sep 17 20:43:35 UTC 2014
On Wed, Sep 17, 2014 at 11:30 AM, David Collier-Brown <davec-b at rogers.com>
wrote:
> 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
>
>
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-child-process/
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20140917/32f4955b/attachment.html>
More information about the talk
mailing list