Blog
How to solve FunCaptcha with Python

How to solve FunCaptcha with Python

Logo of Capsolver

CapSolver Blogger

How to use capsolver

21-Sep-2023

Solving funcaptcha, funcaptcha, funcaptcha with Python, funcaptcha python solver

⚙ Prerequisites

  • A working proxy (OPTIONAL)
  • Python installed
  • Capsolver API key

đŸ€– Step 1: Install Necessary Packages

Execute the following commands to install the required packages:

pip install capsolver

đŸ‘šâ€đŸ’» Python Code for solve Funcaptcha without proxy

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

import capsolver

capsolver.api_key = "your pay per usage key"
PAGE_URL = "websiteURL"
PAGE_KEY = "website site key"

def solver_funcaptcha(url,key):
    solution = capsolver.solve({
        "type": "FunCaptchaTaskProxyless",
        "websiteURL": url,
        "websitePublicKey":key
    })
    return solution


def main():


    print("Solving Funcaptcha...")
    solution = solver_funcaptcha(PAGE_URL, PAGE_KEY)
    print("Solution: ", solution)

if __name__ == "__main__":
    main()

đŸ‘šâ€đŸ’»Python Code for solve Funcaptcha with your own proxy

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

import capsolver
import requests

capsolver.api_key = "your pay per usage key"
PAGE_URL = "websiteURL"
PAGE_KEY = "website site key"
PROXY = "http://username:password@host:port"

def solver_funcaptcha(url,key):
    solution = capsolver.solve({
        "type": "FunCaptchaTask",
        "websiteURL": url,
        "websitePublicKey":key,
        "proxy":PROXY
    })
    return solution


def main():

    print("Solving Funcaptcha...")
    solution = solver_funcaptcha(PAGE_URL, PAGE_KEY)
    print("Solution: ", solution)

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 FuncaptchaTask
  • 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 funcaptcha captcha
  • PAGE_KEY: Replace with the KEY of the website

👀 More information

Mais