MCPcopy Create free account
hub / github.com/alperensert/capmonster_python / solve

Method solve

src/capmonster_python/client.py:220–234  ·  view source on GitHub ↗

Convenience method that creates a task and polls for its result. Equivalent to calling create_task() followed by join_task_result(). Args: task: The task configuration payload. callback_url: An optional callback URL for task completion. Ret

(self, task: TaskPayload, callback_url: Optional[str] = None)

Source from the content-addressed store, hash-verified

218 61, "ERROR_MAXIMUM_TIME_EXCEED", "Maximum time is exceed.")
219
220 def solve(self, task: TaskPayload, callback_url: Optional[str] = None) -> dict:
221 """
222 Convenience method that creates a task and polls for its result.
223
224 Equivalent to calling create_task() followed by join_task_result().
225
226 Args:
227 task: The task configuration payload.
228 callback_url: An optional callback URL for task completion.
229
230 Returns:
231 dict: The solution dictionary from the completed task.
232 """
233 task_id = self.create_task(task, callback_url)
234 return self.join_task_result(task_id)
235
236 async def solve_async(self, task: TaskPayload, callback_url: Optional[str] = None) -> dict:
237 """

Callers 3

test_solve_convenienceFunction · 0.95
test_recaptcha_v2_solveFunction · 0.95
test_recaptcha_v3_solveFunction · 0.95

Calls 2

create_taskMethod · 0.95
join_task_resultMethod · 0.95

Tested by 3

test_solve_convenienceFunction · 0.76
test_recaptcha_v2_solveFunction · 0.76
test_recaptcha_v3_solveFunction · 0.76