Sha256: 2aaa385c9b85f8296b4f4f345be83cb22963724f7a2e2c9034918a0b1fe79bda
Contents?: true
Size: 613 Bytes
Versions: 6
Compression:
Stored size: 613 Bytes
Contents
/* Copyright 2016 The Cocktail Experience, S.L. */ module.exports = function(conf) { var module = { name: conf.name, conf: conf, call: function(request, callback) { request(conf.url, function (error, response, body) { if (!error && response.statusCode == 200) { var cheerio = require('cheerio'), dom = cheerio.load(body); callback(null, dom('.post .oldlink').html()); } else { callback(error, response.statusCode); } }) } }; return(module); }
Version data entries
6 entries across 6 versions & 1 rubygems