An asynchronized Python library to automate solving ReCAPTCHA v2 by audio, using Microsoft Azure's Speech-to-Text API.
Project description
An async Python library to automate solving ReCAPTCHA v2 by audio using PocketSphinx, Microsoft Azure’s and Amazon’s Transcribe Speech-to-Text API. Built with Pyppeteer for it’s Chrome automation framework and similarities to Puppeteer, PyDub for easily converting MP3 files into WAV, aiohttp for it’s async minimalistic web-server, and Python’s built-in AsyncIO for convenience.
Disclaimer
This project is for educational and research purposes only. Any actions and or activities related to the material contained on this GitHub Repository is solely your responsibility. The misuse of the information in this GitHub Repository can result in criminal charges brought against the persons in question. The author will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this GitHub Repository to break the law.
Public
This script was first featured on Reddit at /r/Python - see here for the thread. I’ve finally decided to release the script.
Preview
Check out this 1-minute presentation of the script in action, with only 8 threads!
Compatibility
Linux, macOS, and Windows!
Requirements
Python 3.6.5, FFmpeg, a Microsoft Azure account for Bing Speech API access, an Amazon Web Services account for Transcribe and S3 access, and for Pocketsphinx you’ll need pulseaudio, swig, libasound2-dev, and libpulse-dev under Ubuntu.
Installation
$ pip install nonocaptcha
Configuration
Please edit config.example.py and save as config.py
Usage
If you would like to use it in your own script
import asyncio
from nonocaptcha.solver import Solver
from config import settings
client = Solver(
settings['pageurl'],
settings['sitekey'],
options=options,
proxy=proxy,
proxy_auth=auth_details(),
)
answer = asyncio.get_event_loop().run_until_complete(client.start())
if answer:
print(answer)
Or use the included async script app.py/run.py
Edit variable count for amount of threads to use
$ python examples/run.py
Use the included mini-server and access http://localhost:5000/get?pageurl=PAGEURL&sitekey=SITEKEY
Replace PAGEURL and SITEKEY with the websites ReCAPTCHA details.
$ python examples/app.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nonocaptcha-1.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4bc64b0b4f3e4aea01dcb1484752d51ff1f0c7bf0418e5c8d1541a4cc93c76d |
|
MD5 | 841740c585910b09bcc570cf1daa148a |
|
BLAKE2b-256 | 3972726f1f13092a97590e67710ce91a276eb9e6a14276bdffd8707730df7b05 |