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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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