Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notsapinho/puppeteer-extra-plugin-recaptcha-capmonster
A puppeteer-extra plugin that implements CapMonster support for puppeteer-extra-plugin-recaptcha.
https://github.com/notsapinho/puppeteer-extra-plugin-recaptcha-capmonster
2captcha capmonster captcha hcaptcha plugin puppeteer puppeteer-extra puppeteer-extra-plugin puppeteer-extra-recaptcha-plugin puppeteer-plugin puppeteer-recaptcha recaptcha
Last synced: 10 days ago
JSON representation
A puppeteer-extra plugin that implements CapMonster support for puppeteer-extra-plugin-recaptcha.
- Host: GitHub
- URL: https://github.com/notsapinho/puppeteer-extra-plugin-recaptcha-capmonster
- Owner: notsapinho
- License: mit
- Created: 2022-02-13T19:56:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-26T11:23:53.000Z (over 2 years ago)
- Last Synced: 2024-10-13T09:04:28.379Z (25 days ago)
- Topics: 2captcha, capmonster, captcha, hcaptcha, plugin, puppeteer, puppeteer-extra, puppeteer-extra-plugin, puppeteer-extra-recaptcha-plugin, puppeteer-plugin, puppeteer-recaptcha, recaptcha
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 13
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CapMonster provider for puppeteer-extra-plugin-recaptcha!
> This is a plugin for [puppeteer-extra-plugin-recaptcha](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-recaptcha) that implements [CapMonster](https://capmonster.cloud) provider to the solver.
![](https://i.imgur.com/SWrIQw0.gif)
### Install
```bash
npm i puppeteer-extra-plugin-recaptcha-capmonster
# - or -
yarn add puppeteer-extra-plugin-recaptcha-capmonster
```### Usage
```js
const puppeteer = require("puppeteer-extra");
const { default: RecaptchaPlugin, BuiltinSolutionProviders } = require("puppeteer-extra-plugin-recaptcha");
const CapMonsterProvider = require("puppeteer-extra-plugin-recaptcha-capmonster");CapMonsterProvider.use(BuiltinSolutionProviders);
puppeteer.use(
RecaptchaPlugin({
provider: {
id: "capmonster",
token: "XXXXXXX" // REPLACE THIS WITH YOUR OWN CAPMONSTER API KEY ⚡
},
visualFeedback: true // colorize reCAPTCHAs (violet = detected, green = solved)
})
);// puppeteer usage as normal
puppeteer.launch({ headless: true }).then(async (browser) => {
const page = await browser.newPage();
await page.goto("https://www.google.com/recaptcha/api2/demo");// That's it, a single line of code to solve reCAPTCHAs 🎉
await page.solveRecaptchas();await Promise.all([page.waitForNavigation(), page.click(`#recaptcha-demo-submit`)]);
await page.screenshot({ path: "response.png", fullPage: true });
await browser.close();
});
```## Credits
- Thanks to [berstend](https://github.com/berstend) for the original plugin
- Thanks to [hanahaneull](https://github.com/hanahaneull) for the capmonster solver