
📁 Prerequisites
- A working proxy
- Python installed
- Capsolver API key
🌿 Step 1: Install Necessary Packages
Execute the following commands to install the required packages:
pip install capsolver
pip install os
pip install requests
⚡ Step 2: Python Code for bypass reCaptcha v3 and get 0.7-0.9 score
Here's a Python sample script to accomplish the task:
import json
import os
import capsolver
import requests
from urllib.parse import urlparse
# Change these values
PROXY = "http://username:password@ip:port"
capsolver.api_key = "YourApiKey"
PAGE_URL = "https://antcpt.com/score_detector"
PAGE_KEY = "6LcR_okUAAAAAPYrPe-HK_0RULO1aZM15ENyM-Mf"
PAGE_ACTION = "homepage"
def solve_recaptcha_v3(url,key,pageAction):
solution = capsolver.solve({
"type": "ReCaptchaV3Task",
"websiteURL": url,
"websiteKey":key,
"pageAction":pageAction,
"proxy": PROXY
})
return solution
def set_session_headers(session, user_agent=None):
headers = {
"cache-control": "max-age=0",
"sec-ch-ua": '"Not/A)Brand";v="99", "Google Chrome";v="107", "Chromium";v="107"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "Windows",
"upgrade-insecure-requests": "1",
"user-agent": user_agent if user_agent else "'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"sec-fetch-site": "same-origin",
"sec-fetch-mode": "navigate",
"sec-fetch-user": "?1",
"sec-fetch-dest": "document",
"accept-encoding": "gzip, deflate",
"accept-language": "en,fr-FR;q=0.9,fr;q=0.8,en-US;q=0.7"
}
session.headers.update(headers)
def main():
s = requests.Session()
print("Solving reCaptcha v3")
solution = solve_recaptcha_v3(PAGE_URL, PAGE_KEY, PAGE_ACTION)
print("Solution: ", solution)
set_session_headers(s)
token = solution["gRecaptchaResponse"]
print("Token Solution " + token)
data = {"g-recaptcha-response": token}
res = s.post("https://antcpt.com/score_detector/verify.php", json=data)
response = res.json()
print("Score: " + str(response["score"]))
if __name__ == "__main__":
main()
🛡️ Fields to Update
- PROXY: Update with your proxy details. The format should be http://username:password@ip:port.
- 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 bypass the reCaptcha v3.
- 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