Open ElijahDD opened 4 years ago
And sometimes
Error: could't find the site key
at extract (/root/dev/node_modules/cloudflare-scraper/src/utils.js:25:11)
at handleCaptcha (/root/dev/node_modules/cloudflare-scraper/src/handleCaptcha.js:39:19)
at fillCookiesJar (/root/dev/node_modules/cloudflare-scraper/src/fillCookiesJar.js:52:15)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async handleError (/root/dev/node_modules/cloudflare-scraper/index.js:18:5)
at async cloudflareScraper (/root/dev/node_modules/cloudflare-scraper/index.js:37:20)
at async main (/root/dev/1.js:9:26)
I fixed Error: could't find the site key
by changing value of:
SITE_KEY_REGEXP
to /sitekey=([^"]+)/
in handleCaptcha.js:5waitUntil
to networkidle2
in fillCookiesJar.js:33I fixed
Error: could't find the site key
by changing value of:
SITE_KEY_REGEXP
to/sitekey=([^"]+)/
in handleCaptcha.js:5waitUntil
tonetworkidle2
in fillCookiesJar.js:33
Cloudflare has updated again the new challenge