node package manager


A simple one line scraping tool.


A simple one line scraping node.js module

npm install -g olscrap

Use command line expression Example :

olscrap "" "div.user > a.username {[href]}"

Expression grammar is basically selector {output} with :

  • selector a CSS selector query
  • ouput the format to be applied to each matching element, made of
    • function as defined in jQuery (e.g. text, html, val)
    • and [attribute] (e.g. [href], [name], [type])

Full examples : {text [href]}
input[type=text] {[name] val}