captacha solver
Browse files
server.js
CHANGED
|
@@ -12,11 +12,11 @@ const path = require('path');
|
|
| 12 |
// --- NEW: Configuration for the Solver ---
|
| 13 |
// You can optionally provide a 2Captcha API key to solve more complex captchas,
|
| 14 |
// but it's often not needed for the initial Cloudflare JS challenge.
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
puppeteerExtra.use(StealthPlugin());
|
| 21 |
|
| 22 |
|
|
|
|
| 12 |
// --- NEW: Configuration for the Solver ---
|
| 13 |
// You can optionally provide a 2Captcha API key to solve more complex captchas,
|
| 14 |
// but it's often not needed for the initial Cloudflare JS challenge.
|
| 15 |
+
puppeteerExtra.use(
|
| 16 |
+
RecaptchaPlugin({
|
| 17 |
+
provider: { id: '2captcha', token: 'cc4f0d688032c69ecf359cccdabbacb9' }
|
| 18 |
+
})
|
| 19 |
+
);
|
| 20 |
puppeteerExtra.use(StealthPlugin());
|
| 21 |
|
| 22 |
|