/recaptcha-challenger

🦉Gracefully face reCAPTCHA challenge with ModelHub embedded solution.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

reCAPTCHA Challenger

🦉Gracefully face reCAPTCHA challenge with ModelHub embedded solution.




recaptcha-challenge-demo

Quick Start

  1. Pull PyPi packages

    pip install recaptcha-challenger
  2. Just do it

    import typing
    
    from playwright.sync_api import sync_playwright, Page
    
    from recaptcha_challenger import new_audio_solver
    
    
    def motion(page: Page) -> typing.Optional[str]:
        solver = new_audio_solver()
        if solver.utils.face_the_checkbox(page):
            solver.anti_recaptcha(page)
        return solver.response
    
    
    def bytedance():
        with sync_playwright() as p:
            browser = p.chromium.launch(headless=False)
            ctx = browser.new_context(locale="en-US")
            page = ctx.new_page()
            page.goto("https://www.google.com/recaptcha/api2/demo")
            response = motion(page)
            print(response)
            browser.close()
    
    
    if __name__ == "__main__":
        bytedance()