commit
453bf80046
|
@ -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', {
|
||||
|
|
Loading…
Reference in New Issue