Merge pull request #87 from ammit/master

hack to exclude internal links from the list
pull/2/head
Sahat Yalkabov 2014-02-25 19:38:40 -05:00
commit 453bf80046
1 changed files with 1 additions and 1 deletions

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