Skip to main content

An asynchronized Python library to automate solving ReCAPTCHA v2 by audio

Project description

https://travis-ci.org/mikeyy/nonoCAPTCHA.svg?branch=master PyPI PyPI - Python Version PyPI - License PyPI - Status

nonoCAPTCHA

An async Python library to automate solving ReCAPTCHA v2 by audio using Mozilla’s DeepSpeech, PocketSphinx, Microsoft Azure’s, and Amazon’s Transcribe Speech-to-Text API. Built with Pyppeteer for Chrome automation framework and similarities to Puppeteer, PyDub for easily converting MP3 files into WAV, aiohttp for 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 1-minute presentation of the script in action, with only 8 threads!

nonoCAPTCHA preview

Compatibility

Linux, macOS, and Windows!

Requirements

Python 3.6.0 - 3.7.0, 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 nonocaptcha.example.yaml and save as nonocaptcha.yaml

Usage

If you want to use it in your own script

import asyncio
from nonocaptcha.solver import Solver

pageurl = "https://www.google.com/recaptcha/api2/demo"
sitekey = "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"

proxy = "127.0.0.1:1000"
auth_details = {
     "username": "user",
     "password": "pass"
}
args = ["--timeout 5"]
options = {"ignoreHTTPSErrors": True, "args": args}
client = Solver(
     pageurl,
     sitekey,
     options=options,
     proxy=proxy,
     proxy_auth=auth_details,
)

solution = asyncio.get_event_loop().run_until_complete(client.start())
if solution:
     print(solution)

Donations

The use of proxies are required for my continuous updates and fixes on nonoCAPTCHA. Any donations would be a great help in allowing me to purchase these proxies, that are clearly expensive. If anyone is willing to share their proxies, I wouldn’t hesitate to accept the offer.

Bitcoin: 1BfWQWAZBsSKCNQZgsq2vwaKxYvkrhb14u

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

nonocaptcha-2.0.1.tar.gz (61.0 kB view details)

Uploaded Source

Built Distributions

nonocaptcha-2.0.1-py3.7.egg (95.5 kB view details)

Uploaded Source

nonocaptcha-2.0.1-py3-none-any.whl (76.4 kB view details)

Uploaded Python 3

File details

Details for the file nonocaptcha-2.0.1.tar.gz.

File metadata

  • Download URL: nonocaptcha-2.0.1.tar.gz
  • Upload date:
  • Size: 61.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for nonocaptcha-2.0.1.tar.gz
Algorithm Hash digest
SHA256 5cf08a83393704dc14a47b3b950b7c1fd263b794f941ef9d6f001a92f390355e
MD5 c8a66994286f44c42e796995313d7584
BLAKE2b-256 8927547431f2f9823e6ac2afcc45742b5825e5af5ae9ed2e6f9d3a58deea9ef5

See more details on using hashes here.

File details

Details for the file nonocaptcha-2.0.1-py3.7.egg.

File metadata

  • Download URL: nonocaptcha-2.0.1-py3.7.egg
  • Upload date:
  • Size: 95.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for nonocaptcha-2.0.1-py3.7.egg
Algorithm Hash digest
SHA256 b6035d04b84e945614aea916b7edcc63951d770f3372266e3a47089567ab2802
MD5 41f9993811a615030aa68aab53a29455
BLAKE2b-256 49b881d05deb35bb000fb114ccd371fa36cfd5f49660b75d82b9d161387475c5

See more details on using hashes here.

File details

Details for the file nonocaptcha-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: nonocaptcha-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 76.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for nonocaptcha-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b734e7d9010f077c5fbc1729271415829d0069bfd90499e7feb66d393b93a81e
MD5 1a1e90fb0c061e83d8a9f8e4cff7c98e
BLAKE2b-256 b09386838c00fe7b2cb083ee917d87d8f3eef50394e218fe891713a2447cbf6a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page