hack to exclude internal links from the list

This commit is contained in:
Amit K
2014-02-26 05:26:59 +05:30
parent 4fbeef185b
commit e08830df35

View File

@ -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', {