Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mihneamanolache/recaptcha-solver
RektCaptcha is an automated solution for solving audio-based Google reCAPTCHA challenges using Puppeteer and Playwright. It leverages the Vosk speech-to-text model to transcribe the audio challenges and fill in the reCAPTCHA response field automatically.
https://github.com/mihneamanolache/recaptcha-solver
Last synced: 2 months ago
JSON representation
RektCaptcha is an automated solution for solving audio-based Google reCAPTCHA challenges using Puppeteer and Playwright. It leverages the Vosk speech-to-text model to transcribe the audio challenges and fill in the reCAPTCHA response field automatically.
- Host: GitHub
- URL: https://github.com/mihneamanolache/recaptcha-solver
- Owner: mihneamanolache
- Created: 2024-10-20T19:13:06.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T19:04:42.000Z (3 months ago)
- Last Synced: 2024-10-22T13:36:10.860Z (3 months ago)
- Language: TypeScript
- Size: 38.4 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `recaptcha-solver` aka RektCaptcha
[![npm version](https://img.shields.io/npm/v/@mihnea.dev/recaptcha-solver.svg)](https://www.npmjs.com/package/@mihnea.dev/recaptcha-solver)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)RektCaptcha is an automated solution for solving audio-based Google reCAPTCHA challenges using Puppeteer and Playwright. It leverages the Vosk speech-to-text model to transcribe the audio challenges and fill in the reCAPTCHA response field automatically.
## Features
- Supports **both Puppeteer and Playwright** for browser automation.
- Downloads and uses the Vosk speech-to-text model for transcribing audio.
- Automatically solves Google reCAPTCHA audio challenges.
- Compatible with ES modules and CommonJS.## Installation
```bash
# Using npm
npm install @mihnea.dev/recaptcha-solver
# Using yarn
yarn add @mihnea.dev/recaptcha-solver
```## Usage
Here's an example of how to use RektCaptcha with Puppeteer:
```typescript
import RektCaptcha from "@mihnea.dev/recaptcha-solver";
import puppeteer from "puppeteer";async function main() {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
const rektCaptcha = new RektCaptcha(page);
await page.goto("https://www.google.com/recaptcha/api2/demo");
await rektCaptcha.solve();
await page.screenshot({ path: "screenshot.png" });
console.log("Screenshot taken!");
await browser.close();
}
main().catch(console.error);
```And here's an example of how to use RektCaptcha with Playwright:
```typescript
import RektCaptcha from "@mihnea.dev/recaptcha-solver";
import { chromium } from "playwright";async function main() {
const browser = await chromium.launch({
headless: false,
proxy: {
server: "",
username: "",
password: ""
}
});
const page = await browser.newPage();
const rektCaptcha = new RektCaptcha(page);
await page.goto("https://aida.info.ro/polite-rca");
await rektCaptcha.solve();
await page.screenshot({ path: "screenshot.png" });
console.log("Screenshot taken!");
await browser.close();
}
main().catch(console.error);
```## Debugging
To enable debug logs, set the `DEBUG` environment variable to `recaptcha-solver:*`.```bash
DEBUG=rektcaptcha* node script.js
```## Contributing
Contributions are welcome! If you'd like to contribute to this project, please open an issue or submit a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.