
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
puppeteer-extra-plugin-capsolver
Advanced tools
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
The npm package puppeteer-extra-plugin-capsolver receives a total of 1,381 weekly downloads. As such, puppeteer-extra-plugin-capsolver popularity was classified as popular.
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 1 open source maintainer 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.