Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fuckcaptcha-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

fuckcaptcha-0.1.0-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2 Python 3

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

Hashes for fuckcaptcha-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41d76a19fc1b50025b58941533435f598d23a7ad30d5bc23e5a6641447ab05e1
MD5 08dc45ea2a372852a0c9a98581ac4f6a
BLAKE2b-256 dd55a5949a33a61b694e563230152df4e8f7b4a9a773185971bd5087d1355e58

See more details on using hashes here.

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

Hashes for fuckcaptcha-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6907a5c737d02aa3d7db6e57ebfd14fa93228a0670ee8282f585988a35c874fc
MD5 812b3a7bae1e92ce0608ecfe12c177a4
BLAKE2b-256 dc768151ab7d338d1fd40448b4ac31aaa9cb3aff38e6b3296e39b3b569a2d773

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