
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@popouille/puppeteer-extra-plugin-capsolver
Advanced tools
A puppeteer-extra plugin to interact/solve with API.
npm i puppeteer puppeteer-extra puppeteer-extra-plugin-capsolver
Import and use within puppeteer-extra.
const puppeteer = require('puppeteer-extra');
const CapSolverPlugin = require('puppeteer-extra-plugin-capsolver')();
puppeteer.use(CapSolverPlugin);
.setHandler('apikey', verbose) - at the top of your script.
Set your apikey in order to request solving tasks.
CapSolverPlugin.setHandler('CAI-XXX...', 1); // debug tasks: 1 or 2
Handler it's based on capsolver-npm (nodejs api wrapper for capsolver.com api).
Retrieve the currently handler:
const handler = CapSolverPlugin.handler()
example: retrieve handler and call for funcaptcha token.
//
await CapSolverPlugin.handler()
.funcaptchaproxyless(websiteURL, websitePublicKey, funcaptchaApiJSSubdomain)
.then((response) => {
if(response.error !== 0){
const token = response.apiResponse.solution;
}else{
const token = null;
console.log('[myapp][got error]' + JSON.stringify(response.apiResponse))
}
}).catch(e => {
console.log(e);
})
await CapSolverPlugin.hcaptchaclicker(page) - handle a page including hcaptcha iframe and trigger it, then emulates human clicks. example script (how to use).puppeteer.launch({ headless: false })
.then(async browser => {
let page = await browser.newPage();
await page.goto(targeturl);
await CapSolverPlugin.hcaptchaclicker(page, true)
.then(async (page) => {
// handle clicker success
await page.click('#submit');
await page.waitForNavigation();
}).catch((e) => {
// handle clicker error
console.log(e);
});
})

figure out at examples directory
FAQs
A puppeteer-extra plugin to interact/solve with API.
The npm package @popouille/puppeteer-extra-plugin-capsolver receives a total of 0 weekly downloads. As such, @popouille/puppeteer-extra-plugin-capsolver popularity was classified as not popular.
We found that @popouille/puppeteer-extra-plugin-capsolver demonstrated a not healthy version release cadence and project activity because the last version was released 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.