Sha256: 1166efbfe39e84ccecb0ef79673ebf8d4d694346bd2730e76619b2f7557c4d49

Contents?: true

Size: 482 Bytes

Versions: 6

Compression:

Stored size: 482 Bytes

Contents

/* Copyright 2016 The Cocktail Experience, S.L. */

module.exports = {
  call: function(request, conf, callback) {
    var url = conf.chistescortos.url;
    request(url, function (error, response, body) {
      if (!error && response.statusCode == 200) {
        var cheerio = require('cheerio'),
            body = cheerio('body', body);
        callback(null, body('.post .oldlink').text());
      }
      else {
        callback(error, response.statusCode);
      }
    })
  }
}

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
tck-lambdas-0.3.0 lib/tck/lambdas/chistacojs/chistescortos.js
tck-lambdas-0.3.0 lib/tck/lambdas/chistacojs/source/chistescortos.js
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/chistescortos.js
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/source/chistescortos.js
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/chistescortos.js
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/source/chistescortos.js