Skip to main content

PyPasser

PyPasser is a Python library for bypassing reCaptchaV3 only by sending HTTP requests and solving reCaptchaV2 using speech-to-text engine.

🔴 reCaptchaV3 bypass does not work on all sites. Test on your target to find out.

🐍 Support Python >= 3.7

Installation

Install from PyPI

pip install PyPasser

And for update

pip install PyPasser --upgrade

 

Install from Github (latest repo code)

pip install git+https://github.com/xHossein/PyPasser@master

 

Bypassing reCaptchaV3

To bypass recaptcha v3, first you must find anchor URL.

  • Open inspect-element on your browser.

  • Go to the web page that has reCaptcha V3 (not V2 invisible).

  • In Network tab you should see many requests.

  • Type anchor in text-field filter to hide unnecessary requests.

  • Now you should see a url like this:

    https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LfCVLAUAAAAFwwRnnCFW_J39&co=aHR....

    pass this url to reCaptchaV3 class:

Note that the anchor urls also can have /enterprise/anchor instead of /api2/anchor in other sites.

 

from pypasser import reCaptchaV3

reCaptcha_response = reCaptchaV3('ANCHOR URL')
## use this response in your request ...

Some good examples are here.

 

Proxy

from pypasser import reCaptchaV3
from pypasser.structs import Proxy

## Using Proxy structure
proxy = Proxy(Proxy.type.HTTPs,'HOST','PORT')

## with authentication credentials
# proxy = Proxy(Proxy.type.HTTPs,'HOST','PORT','USERNAME', 'PASSWORD')

reCaptcha_response = reCaptchaV3('ANCHOR URL', proxy)

also you can configure it as Dict.

proxy = {"http": "http://HOST:PORT",
         "https": "https://HOST:PORT"}

reCaptcha_response = reCaptchaV3('ANCHOR URL', proxy)

 

Timeout

Default timeout is 20 seconds but you can change the amount like this:

from pypasser import reCaptchaV3

reCaptcha_response = reCaptchaV3('ANCHOR URL', timeout = 10)

 

Bypassing reCaptchaV2

Before start using reCaptchaV2 solver, you must install the following requirements.

Requirements :

  • PocketSphinx (used as speech-to-text engine)
  • ffmpeg (used for audio format conversion)

After installing requirements, you should pass your webdriver to reCaptchaV2 class then PyPasser tries to solve the reCaptcha V2 which is in current tab of browser.

from pypasser import reCaptchaV2

# Create an instance of webdriver and open the page has recaptcha v2
# ...

# pass the driver to reCaptchaV2
is_checked = reCaptchaV2(driver_instance) # it returns bool

 

Arguments

driver: An instance of webdriver.
Play: Click on 'PLAY' button. [Default is True means it plays the audio].
Attempts: Maximum solving attempts for a recaptcha. [Default is 3 times].

is_checked = reCaptchaV2(
                    driver = driver_instance,
                    play = False,
                    attempts = 5
                  )

See an example here.

Note that Google gonna blocks you if you try to solve many recaptcha via audio challenge. In this case PyPasser raises IpBlock exception.

 

Exception

Exception Bypass Description
ConnectionError reCaptchaV3 Raised due to network connectivity-related issues.
RecaptchaTokenNotFound reCaptchaV3 Raised when couldn't find token due to wrong anchor_url.
RecaptchaResponseNotFound reCaptchaV3 Raised when couldn't find reCaptcha response due to using PyPasser for site that hasn't reCaptchaV3.
IpBlock reCaptchaV2 Raised due to solving many recaptcha via audio challenge.

 

Legal Disclaimer

This was made for educational purposes only, nobody which directly involved in this project is responsible for any damages caused. You are responsible for your actions.

 

License

MIT

Metadata

Release files for PyPasser 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyPasser 0.0.5
File Size Uploaded
PyPasser-0.0.5.tar.gz 11.0 kB Details

Release files / PyPasser-0.0.5.tar.gz

Download URL PyPasser-0.0.5.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
72b0ded34edcfa885a13ecc825c5a058503b68521ab87294205d7ff5cd569515
BLAKE2b-256 checksum
How to use checksums
dc18405c919c0398ecdb9ff5fa62a6c092751d7c6d5865191633967f95ded134
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page