我试图让验证码求解器工作,但它一直给我 puppeteer.use 未定义的错误。我没有看到任何人有这个问题,所以我真的被困住了。并且需要帮助。
`
const puppeteer = require('puppeteer-extra');
const puppeteerStealth = require('puppeteer-extra-plugin-stealth');
const puppeteerCaptcha = require('puppeteer-extra-plugin-recaptcha')
puppeteer.use(puppeteerStealth());
const randomUseragent = require('random-useragent');
puppeteer.use(
RecaptchaPlugin({
provider: {
id: '2captcha',
token: 'xxxxxxx' // REPLACE THIS WITH YOUR OWN 2CAPTCHA API KEY ⚡
},
visualFeedback: true // colorize reCAPTCHAs (violet = detected, green = solved)
})
);
`
baby-hov@babyhov-ThinkPad-X200-Tablet:~/my projects/sneaker bot$ node main.js
/home/baby-hov/my projects/sneaker bot/main.js:104
puppeteer.use(
^
ReferenceError: RecaptchaPlugin is not defined
at /home/baby-hov/my projects/sneaker bot/main.js:104:19
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Node.js v17.3.0