#๐Ÿ”’ Help with capmonster [Turnstile specifically]

8 messages ยท Page 1 of 1 (latest)

inland nebula
#

I have a python code that basically solves 5s challenge on cloudfare page for webscraping, but this time its a cf_clearance type and i cant seem to solve it using capmonster, its giving 'error_task_absent' continusoly can someone help?

dusty tundraBOT
#

@inland nebula

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

inland nebula
#
payload = {
  "clientKey": client_key,
  "task": {
    "type":"TurnstileTaskProxyless", "websiteURL":websiteUrl, "websiteKey":websiteKey, "cloudflareTaskType": "cf_clearance", "htmlPageBase64": pageData, "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"}}
res = requests.post(url, json=payload)
print(res.json())
time.sleep(20)
url2 = 'https://api.capmonster.cloud/getTaskResult'
payload2 = {
  "clientKey": client_key,
  "taskId": res.json()['taskId']
}
res = requests.post(url, json=payload2)
print(res.json())```
#

just saw its against the rule

#

sorry

#

!close

dusty tundraBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.