NoneCap

v0.13.0
io.github.nonecap/nonecap Checked 6 hours ago Published 29 days ago

Solve hCaptcha and hCaptcha Enterprise challenges and get back a token, via the NoneCap API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

solve_hcaptcha Solve an hCaptcha

Solve an hCaptcha and return the token. Waits up to wait_seconds; if the solve is still running then, returns its id and status: call get_solve with the id rather than solving again. Only successful solves are charged.

ParameterTypeDescription
sitekey *stringThe hCaptcha sitekey on the page.
url *stringThe URL of the page the captcha is on.
proxystringProxy to solve through, as a URL: scheme://user:pass@host:port (http, https, socks5, socks5h or socks4).
rqdatastringEnterprise only: the rqdata the site passes to its widget, if it passes one.
typestringhcaptcha (default) or hcaptcha_enterprise.
user_agentstringThe user agent of the browser that loaded the page, as is. Leave out if you do not have it.
wait_secondsintegerSeconds to wait for the result, 0-50. Default 45. 0 returns right after submitting.

get_solve Get a solve

Get a solve by id: its status, and the token once it is solved. Set wait_seconds to wait for it to finish.

ParameterTypeDescription
id *stringThe solve id (solve_…).
wait_secondsintegerHold up to this many seconds (1-50) for the solve to finish. Omit to return at once.

cancel_solve Cancel a solve

Cancel a pending or running solve. Cancelled solves are not charged.

ParameterTypeDescription
id *stringThe solve id (solve_…).

list_solves List solves

List your recent solves, newest first.

ParameterTypeDescription
limitintegerPage size, 1-100. Default 20.
starting_afterstringA solve id: return the page after it (the last id of the previous page).
statusstringOnly solves with this status.
typestringOnly solves of this type.

get_account Get account

Get your NoneCap account: credit balance, and your plan's solves left today.

report_solve_outcome Report a token's outcome

Tell NoneCap whether the site accepted a solve's token. Free; reporting the same solve again corrects it.

ParameterTypeDescription
outcome *stringaccepted or rejected by the site; unknown (submitted, verdict unclear); unused (never submitted); error (the site failed for a reason unrelated to the token).
solve_id *stringThe id of a solved solve.
contextstringAnything else about the attempt that would help diagnose it.
reasonstringWhat the site returned when it refused the token.