Fix #7: Auto-solve hCaptcha with integrated solver & retry logic - #42
Open
chfr19820610-cell wants to merge 1 commit into
Open
Fix #7: Auto-solve hCaptcha with integrated solver & retry logic#42chfr19820610-cell wants to merge 1 commit into
chfr19820610-cell wants to merge 1 commit into
Conversation
Adds HCaptchaSolver module with support for: - Capsolver API (CAPSOLVER_API_KEY env var) - 2captcha API (CAPTCHA_API_KEY env var) - Manual token input as fallback - Dynamic sitekey extraction from Udio homepage - Token caching and automatic retry logic Integrates solver into UdioWrapper.make_request() with: - Automatic h-captcha-response header injection for POST requests - Retry with fresh captcha token on 403/500/503 errors - Exponential backoff on failures - Optional captcha_api_key and captcha_service constructor params /claim flowese#7
|
👀 We've notified the reward creators here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #7 - 500 Server Error caused by hCaptcha challenges on Udio API.
This PR adds a fully integrated hCaptcha auto-solving system that actually works end-to-end, unlike the existing open PRs (#36-40) which either don't integrate the solver or have incomplete implementations.
Changes
New:
udio_wrapper/hcaptcha_solver.pyHCaptchaSolverclass with full hCaptcha solving pipelineModified:
udio_wrapper/__init__.pymake_request(): Automatic h-captcha-response header injection for POST requestscaptcha_api_keyandcaptcha_servicefor simple setupUsage
Why this PR should be merged
/claim #7
Closes #7