NeuroCaptcha

टास्क का प्रकार

Cloudflare Turnstile

TurnstileTaskआपकी प्रॉक्सी

पेज के पैरामीटर भेजें और बाकी सभी प्रकारों जैसे ही रिस्पॉन्स फ़ॉर्मैट में इस्तेमाल के लिए तैयार टोकन पाएँ।

आपकी प्रॉक्सी के साथ: टास्क आपकी दी हुई प्रॉक्सी के ज़रिए हल होता है, इसलिए टोकन आपके IP से मेल खाता है। हल होने के बाद प्रॉक्सी क्रेडेंशियल हटा दिए जाते हैं।

कीमत

$0.80प्रति 1,000 टास्क

$0.0008 प्रति टास्क

API कुंजी पाएँ

लाइव मेट्रिक्स, 24 घंटे

इस प्रकार के लाइव मेट्रिक्स लॉन्च के बाद स्टेटस पेज पर दिखेंगे।

टास्क पैरामीटर

पैरामीटरटाइपज़रूरीटास्क पैरामीटर
typestringज़रूरीTurnstileTask
websiteURLstringज़रूरीकैप्चा वाले पेज का पूरा URL।
websiteKeystringज़रूरीसाइट कुंजी (data-sitekey या anchor अनुरोध का k पैरामीटर)।
actionstringवैकल्पिकTurnstile का action (data-action), अगर विजेट इसे सेट करता है।
turnstileCDatastringवैकल्पिकTurnstile का cData (data-cdata), अगर विजेट इसे सेट करता है।
userAgentstringवैकल्पिकहल करने के लिए User-Agent; टोकन सबमिट करते समय भी यही इस्तेमाल करें।
cookiesstringवैकल्पिकलक्षित साइट की कुकीज़, key1=value1; key2=value2 फ़ॉर्मैट में।
proxyTypestringज़रूरीhttp, socks4 या socks5।
proxyAddressstringज़रूरीप्रॉक्सी का IP पता या होस्ट (सिर्फ़ सार्वजनिक पते)।
proxyPortintegerज़रूरीप्रॉक्सी पोर्ट।
proxyLoginstringवैकल्पिकप्रॉक्सी लॉगिन, अगर प्रॉक्सी को ऑथराइज़ेशन चाहिए।
proxyPasswordstringवैकल्पिकप्रॉक्सी पासवर्ड। टास्क हल होने के बाद हटा दिया जाता है।

उदाहरण

import time
import requests

API = "https://"
KEY = "YOUR_API_KEY"

# 1. create a task: the price is held, not charged
task = requests.post(f"{API}/createTask", json={
    "clientKey": KEY,
    "task": {
        "type": "TurnstileTask",
        "websiteURL": "https://example.com/login",
        "websiteKey": "0x4AAAAAAA-SITE-KEY",
        "proxyType": "http",
        "proxyAddress": "203.0.113.10",
        "proxyPort": 8080,
        "proxyLogin": "user",
        "proxyPassword": "pass",
    },
}).json()
if task["errorId"]:
    raise RuntimeError(task["errorCode"])

# 2. poll the result (or pass "callbackUrl" and get a signed webhook)
while True:
    time.sleep(3)
    res = requests.post(f"{API}/getTaskResult",
                        json={"clientKey": KEY, "taskId": task["taskId"]}).json()
    if res["errorId"]:
        raise RuntimeError(res["errorCode"])
    if res["status"] == "ready":
        print(res["solution"]["token"])
        break

दूसरे टास्क प्रकार