main.stealth.js: puppeteer-extra-plugin-stealth enough to avoid hcaptcha, claim successful

This commit is contained in:
Ralf Vogler 2021-12-28 00:51:21 +01:00
parent ba97a0e840
commit 64d0ba8ce7
4 changed files with 212 additions and 3 deletions

View file

@ -3,6 +3,7 @@ if (!existsSync('auth.json')) {
console.error('Missing auth.json! Run `npm login` to login and create this file by closing the opened browser.');
}
// npm i playwright playwright-extra@next @extra/recaptcha@next
const { chromium } = require('playwright-extra')
// add recaptcha plugin and provide it your 2captcha token (= their apiKey)