0.0.5 • Published 9 years ago

h5 v0.0.5

Weekly downloads
20
License
-
Repository
github
Last release
9 years ago

h5js

Distributed computing with JSON.

Checkout example.js and cloud.js in examples directory.

var h5 = require('h5');

require('./functions.js');

var example =
  h5.action('http.request', { url: 'http://www.imdb.com/title/tt0110912/' }).
     action('html.extract', { selectors: { title: 'h1.header > span[itemprop="name"]', year: 'h1.header > span > a' } });

example.
  run().
  then(function(result) {
    console.log(result);
  }, function(err) {
    console.log('Error:', err);
  });

Saving action and running in cloud

h5.cloud.set('http://127.0.0.1:6090/');

example.
  save().
  then(function() {
    example.
      run({url: 'http://www.imdb.com/title/tt0137523/'}, true).
      then(function(result) {
        console.log(result);
      }, function(err) {
        console.log('Error:', err);
      });
  });
0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago