diff --git a/controllers/api.js b/controllers/api.js index 87bdf7209e1..99a63fdddb5 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -123,7 +123,7 @@ exports.getScraping = function(req, res, next) { if (err) return next(err); var $ = cheerio.load(body); var links = []; - $('.title a').each(function() { + $(".title a[href^='http'], a[href^='https']").each(function() { links.push($(this)); }); res.render('api/scraping', {