
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
puppeteer-extra-plugin-capsolver
Advanced tools
manage to solve captcha challenges with puppeteer
manage to solve captcha challenges with puppeteer
npm i puppeteer puppeteer-extra puppeteer-extra-plugin-capsolver
puppeteer-extra
and the plugin packageconst puppeteer = require("puppeteer-extra");
const {
SolverPlugin,
SolverPluginError,
SolverError,
} = require("puppeteer-extra-plugin-capsolver");
How it works? This feature would auto-load the extension from a zipped file into static temp folder on your disk, then would load from there on demand refreshing apiKey
on load.
How to use with from the plugin?
useExtension
on plugin init.await page.waitForSolverCallback({ timeout })
.puppeteer.use(
new SolverPlugin({
apiKey: process.env.APIKEY,
useExtension: true, // this will auto-load the extension and apiKey
useExtensionProxy: process.env.PROXYSTRING, // force proxy string on solving
useExtensionReCaptchaMode: "token", // click or token mode
})
);
// ...
await page.waitForSolverCallback({
// timeout: 120000,
});
How it works? Make use of capsolver-npm
package to perform API calls for solution retrieving.
How to use with from the plugin?
await page.solver().<method>({})
from any Page.puppeteer.use(
new SolverPlugin({
apiKey: process.env.APIKEY,
})
);
// ...
await page
.solver()
.recaptchav2classification({
// ... parameters
})
.then((s: any) => {
console.log(s);
})
.catch((e: SolverError) => {
console.log(`Errored task Id: ${e.errorTaskId}`);
console.log(`Error Code: ${e.errorCode}`);
console.log(`Error description: ${e.errorDescription}`);
});
Figure out here.
By using this package, you acknowledge and agree that:
FAQs
manage to solve captcha challenges with puppeteer
We found that puppeteer-extra-plugin-capsolver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.