0.1.5 • Published 11 years ago

olscrap v0.1.5

Weekly downloads
26
License
-
Repository
github
Last release
11 years ago

Ol'scrap

A simple one line scraping node.js module

Installation

npm install -g olscrap

Usage

Use command line expression Example :

olscrap "https://npmjs.org/package/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 :

ul.menu a.active {text [href]}
input[type=text] {[name] val}
0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago