We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-crawler/lib/crawler.js
Line 157 in e8a51d7
reproduce code
var jsdom = require('jsdom'); var Crawler = require('crawler'); var c = new Crawler({ jQuery: jsdom, jquery: jsdom }); c.queue({ jQuery: { jsdom }, uri: "https://www.baidu.com", callback: (err, res, done) => { console.log(err, res, done) } })
This leads to
By the way the statement about jsdom seems to be outdated. pass { jQuery: require('jsdom') } not works
{ jQuery: require('jsdom') }
The text was updated successfully, but these errors were encountered:
You are right, the jsdom option is outdated. I recommend you to adopt puppeteer to get what you want instead.
puppeteer
Sorry, something went wrong.
No branches or pull requests
node-crawler/lib/crawler.js
Line 157 in e8a51d7
reproduce code
This leads to
By the way the statement about jsdom seems to be outdated. pass
{ jQuery: require('jsdom') }
not worksThe text was updated successfully, but these errors were encountered: