Blog
How to solve reCaptcha v3 Enterprise with Python

How to solve reCaptcha v3 Enterprise with Python

Logo of Capsolver

CapSolver Blogger

How to use capsolver

25-Sep-2023

Solve reCaptcha v3 Enterprise with Python, reCaptcha v3 Enterprise python solver

⚙️ Prerequisites

  • Proxy (Optional)
  • Python installed
  • Capsolver API key

🤖 Step 1: Install Necessary Packages

Execute the following commands to install the required packages:

pip install capsolver

👨‍💻 Step 2: Python Code for solve reCaptcha v3 Enterprise and get 0.7-0.9 score with Proxy

Here's a Python sample script to accomplish the task:

import capsolver
from urllib.parse import urlparse

# Change these values
PROXY = "http://username:password@ip:port"
capsolver.api_key = "YourApiKey"
PAGE_URL = ""
PAGE_KEY  = ""
PAGE_ACTION = ""

def solve_recaptcha_v3_enterprise(url,key,pageAction):
    solution = capsolver.solve({
        "type": "ReCaptchaV3EnterpriseTask",
        "websiteURL": url,
        "websiteKey":key,
        "pageAction":pageAction,
        "proxy": PROXY
    })
    return solution


def main():
    
    print("Solving reCaptcha v3 Enterprise")
    solution = solve_recaptcha_v3_enterprise(PAGE_URL, PAGE_KEY, PAGE_ACTION)
    print("Solution: ", solution)
  
    
    
    token = solution["gRecaptchaResponse"]
    print("Token Solution " + token)

if __name__ == "__main__":
    main()

👨‍💻 Step 2: Python Code for solve reCaptcha v3 Enterprise and get 0.7-0.9 score without Proxy

Here's a Python sample script to accomplish the task:

import capsolver
from urllib.parse import urlparse

# Change these values
capsolver.api_key = "YourApiKey"
PAGE_URL = ""
PAGE_KEY  = ""
PAGE_ACTION = ""

def solve_recaptcha_v3_enterprise(url,key,pageAction):
    solution = capsolver.solve({
        "type": "ReCaptchaV3EnterpriseTaskProxyless",
        "websiteURL": url,
        "websiteKey":key,
        "pageAction":pageAction
    })
    return solution


def main():
    
    print("Solving reCaptcha v3 Enterprise")
    solution = solve_recaptcha_v3_enterprise(PAGE_URL, PAGE_KEY, PAGE_ACTION)
    print("Solution: ", solution)
    
    
    
    token = solution["gRecaptchaResponse"]
    print("Token Solution " + token)

if __name__ == "__main__":
    main()

⚠️ Change these variables

  • PROXY: Update with your proxy details. The format should be http://username:password@ip:port, only required if use ReCaptchaV3EnterpriseTask.
  • capsolver.api_key: Obtain your API key from the Capsolver Dashboard.
  • PAGE_URL: Replace with the URL of the website for which you wish to solve the reCaptcha v3 Enterprise.
  • PAGE_KEY: Update with the specific key of the site with recaptcha.
  • PAGE_ACTION: Replace with the pageAction of the page. You can read this blog

👀 More information

More