bypass reCAPTCHA detection in pyppeteer
note that this does not solve captchas, it’s just to bypass the detection so you can write a bot to solve captchas
this is just a pyppeteer port of https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth so all credits to them
usage
install fuckcaptcha and pyppeteer
pip install fuckcaptcha pyppeteer
run this example and try to do the audio verification. it should work fine instead of saying your browser is automated.
keep in mind that recaptcha likes to randomly flag ip’s and user agents which might confuse you when testing
also, it’s recommended to use a recent chromium build:
linux/mac:
PYPPETEER_CHROMIUM_REVISION="706915" python .\fuck.py
windows:
$env:PYPPETEER_CHROMIUM_REVISION="706915"
python.exe .\fuck.py
fuck.py:
import asyncio
from pyppeteer import launch
import fuckcaptcha as fucking
import sys
async def main():
browser = await launch(headless=False)
page = await browser.newPage()
await fucking.bypass_detections(page)
await page.goto("https://www.google.com/recaptcha/api2/demo")
while True:
await asyncio.sleep(1)
if sys.platform == "win32":
loop = asyncio.ProactorEventLoop()
else:
loop = asyncio.new_event_loop()
# workaround for KeyboardInterrupt on wangblows
async def wake_the_fuck_up():
while True:
await asyncio.sleep(1)
loop.create_task(wake_the_fuck_up())
loop.run_until_complete(main())
license
fuck.js is MIT licensed: https://github.com/berstend/puppeteer-extra/blob/master/LICENSE
pyppetteer is MIT licensed: https://github.com/miyakogi/pyppeteer/blob/dev/LICENSE
my 2 lines of glue code are UNLICENSED: https://unlicense.org/
Metadata
Release files for fuckcaptcha 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fuckcaptcha-0.1.0.tar.gz | 4.5 kB | Without provenance | Details for fuckcaptcha-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fuckcaptcha-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for fuckcaptcha-0.1.0-py2.py3-none-any.whl |
Total release size: 9.5 kB
Release files / fuckcaptcha-0.1.0.tar.gz
| Download URL | fuckcaptcha-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41d76a19fc1b50025b58941533435f598d23a7ad30d5bc23e5a6641447ab05e1
|
|
BLAKE2b-256 checksum How to use checksums |
dd55a5949a33a61b694e563230152df4e8f7b4a9a773185971bd5087d1355e58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3
|
Release files / fuckcaptcha-0.1.0-py2.py3-none-any.whl
| Download URL | fuckcaptcha-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6907a5c737d02aa3d7db6e57ebfd14fa93228a0670ee8282f585988a35c874fc
|
|
BLAKE2b-256 checksum How to use checksums |
dc768151ab7d338d1fd40448b4ac31aaa9cb3aff38e6b3296e39b3b569a2d773
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3
|
Security for fuckcaptcha 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.