feat: Add NoPechA hCaptcha auto-solve integration#19
Open
williamjie777 wants to merge 1 commit intoflowese:mainfrom
Open
feat: Add NoPechA hCaptcha auto-solve integration#19williamjie777 wants to merge 1 commit intoflowese:mainfrom
williamjie777 wants to merge 1 commit intoflowese:mainfrom
Conversation
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.
NoPechA hCaptcha Auto-Solve Integration for UdioWrapper
🎯 Problem Solved
Udio introduced hCaptcha protection in April 2024, which caused 500 Server Error when making API requests. Multiple contributors have attempted Selenium-based workarounds, but these still required frequent manual intervention.
This PR provides a robust solution with automatic hCaptcha solving using NoPechA's AI-powered service.
✨ Features Added
1. Hybrid Mode (
udio_wrapper_hybrid.py)2. NoPechA Client (
nopecha_client.py)3. Easy Configuration
💰 Cost Analysis
Metric | Value -- | -- NoPechA Pricing | $1 USD = ~90,000 solutions Cost per solve | ~$0.000011 Heavy usage (10 songs/day) | ~$0.067/monthEven heavy users pay less than 7 cents per month!
🔧 Installation
pip install requests aiohttp playwright
playwright install chromium
export UDIO_AUTH_TOKEN="your_sb-api-auth-token"
export NOPECHA_API_KEY="your_nopecha_key"
📚 Documentation
README_HYBRID.md - Complete user guide
nopecha_client.py - SDK with examples
udio_wrapper_hybrid.py - Hybrid mode implementation
🙏 Acknowledgments
Thanks to Flowese for the original UdioWrapper, jfarre20 for extensive research in Issue #7, and Pikachubolk for inspiring this NoPechA integration approach.
📋 Related Issues
Fixes: #7 (500 Server Error - Auto Solve hcapcha)
Ready to bring UdioWrapper back to life! 🎵