bypass reCAPTCHA detection in pyppeteer
Project description
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/
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
File details
Details for the file fuckcaptcha-0.1.0.tar.gz
.
File metadata
- Download URL: fuckcaptcha-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d76a19fc1b50025b58941533435f598d23a7ad30d5bc23e5a6641447ab05e1 |
|
MD5 | 08dc45ea2a372852a0c9a98581ac4f6a |
|
BLAKE2b-256 | dd55a5949a33a61b694e563230152df4e8f7b4a9a773185971bd5087d1355e58 |
File details
Details for the file fuckcaptcha-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fuckcaptcha-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6907a5c737d02aa3d7db6e57ebfd14fa93228a0670ee8282f585988a35c874fc |
|
MD5 | 812b3a7bae1e92ce0608ecfe12c177a4 |
|
BLAKE2b-256 | dc768151ab7d338d1fd40448b4ac31aaa9cb3aff38e6b3296e39b3b569a2d773 |