⬇️ Install
npm i puppeteer puppeteer-extra puppeteer-extra-plugin-captchaai
✋ Usage
-
Import and use within puppeteer-extra
.
const puppeteer = require('puppeteer-extra');
const CaptchaaiPlugin = require('puppeteer-extra-plugin-captchaai')();
puppeteer.use(CaptchaaiPlugin);
-
.setHandler('apikey', verbose)
- at the top of your script.
Set your apikey in order to request solving tasks.
CaptchaaiPlugin.setHandler('CAI-XXX...', 1);
📖 Handler / Solving API Wrapper
-
Handler it's based on captchaai-npm (nodejs api wrapper for captchaai.io api).
-
Get the currently handler with CaptchaaiPlugin.handler()
method.
-
Perform any method that captchaai-npm brings.
-
Supported captcha tasks listed on captchaai-npm at Supported API methods.
📁 Examples
figure out at examples directory