var scrape = new Nightmare({
show: false
})
.goto(urlOb.url)
.wait(1000)
.evaluate(function() {
return document.body.innerHTML;
}).end().then(function(html) {
if (html == undefined) {
console.log('========================');
console.log('html not there!');
console.log(arg);
console.log('========================');
return;
}
var $ = cheerio.load(html);
我需要这个刮,一旦抓完第一页就跳到下一页。除了其他nightmareJS原生函数之外,我一直在使用.click(),. visible()函数,但我一直在做空。有什么想法吗?