Closed birdgg closed 9 years ago
for (var option in options) { scraperjs.StaticScraper.create() .request(option) .scrape(function($) { return $(site_info.matchElem).map(function() { return { title: $(this).text(), link: $(this).attr('href') } }).get(); }, function(results) { results.forEach(function(result) { console.log(result); }); }); }
I want to use this code to scrape several websites,but it only show the last website I scrape.How can I do it?
You should use a router.
I want to use this code to scrape several websites,but it only show the last website I scrape.How can I do it?