Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sexfrance/recaptchav2-solver
A Python-based solution for solving Google's reCAPTCHA v2 challenges efficiently (3-12 seconds solve time). The script supports both synchronous and asynchronous operations, with API endpoints for easy integration. Uses audio challenge method with speech recognition for reliable solving.
https://github.com/sexfrance/recaptchav2-solver
api async asyncio audio-captcha automation captcha-solver patchright playwright python recaptcha recaptcha-solver recaptchav2 recaptchav2-solver speech-recognition web-automation web-scraping
Last synced: 23 days ago
JSON representation
A Python-based solution for solving Google's reCAPTCHA v2 challenges efficiently (3-12 seconds solve time). The script supports both synchronous and asynchronous operations, with API endpoints for easy integration. Uses audio challenge method with speech recognition for reliable solving.
- Host: GitHub
- URL: https://github.com/sexfrance/recaptchav2-solver
- Owner: sexfrance
- License: mit
- Created: 2024-11-12T18:52:34.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-19T12:41:26.000Z (about 2 months ago)
- Last Synced: 2024-12-19T13:45:29.941Z (about 2 months ago)
- Topics: api, async, asyncio, audio-captcha, automation, captcha-solver, patchright, playwright, python, recaptcha, recaptcha-solver, recaptchav2, recaptchav2-solver, speech-recognition, web-automation, web-scraping
- Language: Python
- Homepage: https://discord.cyberious.xyz
- Size: 41 KB
- Stars: 14
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RecaptchaV2 - Solver
A Python-based solution for solving Google's reCAPTCHA v2 challenges efficiently (8-12 seconds solve time). The script supports both synchronous and asynchronous operations, with API endpoints for easy integration. Uses audio challenge method with speech recognition for reliable solving.
๐ฌ Discord
ยท
๐ ChangeLog
ยท
โ ๏ธ Report Bug
ยท
๐ก Request Feature
### โ๏ธ Installation
- Requires: `Python 3.8+`
- Make a python virtual environment: `python3 -m venv venv`
- Source the environment: `venv\Scripts\activate` (Windows) / `source venv/bin/activate` (macOS, Linux)
- Install the requirements: `pip install -r requirements.txt`
- Install chrominium: `patchright install chromium` / `python -m patchright install chromium`---
### ๐ฅ Features
- **Multiple Operation Modes**: Supports synchronous, asynchronous, and API-based solving
- **Audio Challenge Solving**: Uses speech recognition to solve audio challenges automatically
- **Proxy Support**: Built-in proxy support for avoiding rate limits
- **Concurrent Solving**: Batch processing capability for multiple CAPTCHAs
- **Debug Logging**: Comprehensive debug logs for troubleshooting
- **Rate Limit Detection**: Automatically detects and handles rate limiting
- **Enterprise Support**: Handles both standard and enterprise reCAPTCHA
- **Token Retrieval**: Multiple methods for reliable token extraction
- **Error Handling**: Robust error handling with detailed feedback---
### ๐ API Usage
#### Python Example
```python
import requests# Example request
url = "http://localhost:8080/createTask"
data = {
"task": {
"type": "ReCaptchaV2TaskProxyless",
"websiteURL": "https://example.com",
"websiteKey": "6LcR_RsTAAAAAFJR_ZqPX8_k3_epxrq_x_vG9ZTi",
# Optional proxy configuration
"proxy": {
"server": "proxy.example.com:8080",
"username": "proxyuser",
"password": "proxypass"
}
}
}response = requests.post(url, json=data)
result = response.json()if result["errorId"] == 0:
token = result["solution"]["gRecaptchaResponse"]
print(f"Successfully solved! Token: {token[:50]}...")
else:
print(f"Error: {result['errorDescription']}")
```#### cURL Example
```bash
curl -X POST http://localhost:8080/createTask \
-H "Content-Type: application/json" \
-d '{
"task": {
"type": "ReCaptchaV2TaskProxyless",
"websiteURL": "https://example.com",
"websiteKey": "6LcR_RsTAAAAAFJR_ZqPX8_k3_epxrq_x_vG9ZTi"
}
}'
```#### Response Example
```json
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AGdBq24PBCbwiDRaS_MJ7..."
}
}
```#### Async Usage
```python
async def main():
token = await AsyncReCaptchaSolver.solve_recaptcha(
url="https://example.com",
site_key="your_site_key",
proxy={
"server": "proxy_address",
"username": "proxy_user",
"password": "proxy_pass"})
print(token)asyncio.run(main())
```#### Sync Usage
```python
token = ReCaptchaSolver.solve_recaptcha(
url="https://example.com",
site_key="your_site_key",
proxy={
"server": "proxy_address",
"username": "proxy_user",
"password": "proxy_pass"
}
)
print(token)
```---
### ๐น Preview
![Preview](https://i.imgur.com/fHZwjNl.gif)
---
### โ Disclaimers
- I am not responsible for anything that may happen, such as API Blocking, IP ban, etc.
- This was a quick project that was made for fun and personal use if you want to see further updates, star the repo & create an "issue" [here](https://github.com/sexfrance/RecaptchaV2-Solver/issues/)---
### ๐ ChangeLog
```diff
v0.0.1 โฎ 11/12/2024
! Initial release
```---
````