CAPSOLVER
Blog
How to solve reCaptcha v3 Enterprise with Python

How to solve reCaptcha v3 Enterprise with Python

Logo of CapSolver

Lucas Mitchell

Automation Engineer

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:

python Copy
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:

python Copy
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:

python Copy
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

Compliance Disclaimer: The information provided on this blog is for informational purposes only. CapSolver is committed to compliance with all applicable laws and regulations. The use of the CapSolver network for illegal, fraudulent, or abusive activities is strictly prohibited and will be investigated. Our captcha-solving solutions enhance user experience while ensuring 100% compliance in helping solve captcha difficulties during public data crawling. We encourage responsible use of our services. For more information, please visit our Terms of Service and Privacy Policy.

More