0.1.5 • Published 12 years ago
olscrap v0.1.5
Ol'scrap
A simple one line scraping node.js module
Installation
npm install -g olscrapUsage
Use command line expression Example :
olscrap "https://npmjs.org/package/olscrap" "div.user > a.username {[href]}"Expression grammar is basically selector {output} with :
selectora CSS selector queryouputthe format to be applied to each matching element, made offunctionas defined in jQuery (e.g.text,html,val)- and
[attribute](e.g.[href],[name],[type])
Full examples :
ul.menu a.active {text [href]}
input[type=text] {[name] val}