REPO STORY / 레포 이야기
jamespolyakov9829/captcha-api
Cloudflare Challenge와 Turnstile captcha를 푸는 Python 클라이언트, 비용 추적 및 배치 처리 지원
01 / 뭐 하는 레포인가요?
어떤 일을
도와주나요?
Clearance의 captcha 해결 API를 호출하는 Python 클라이언트와 CLI 도구입니다. Cloudflare의 Challenge 페이지와 Turnstile 위젯을 자동으로 풀고 토큰을 반환합니다. 배치 실행 전 비용을 예측할 수 있고, 스레드 풀로 여러 URL을 병렬 처리할 수 있습니다. pip install 후 API 키(무료 가입으로 획득)만 있으면 바로 사용 가능합니다.
- 배치 실행 전 estimate_cost()로 정확한 요금 예측, 실행 후 CostTracker로 비용 추적
- 스레드 풀로 여러 URL의 captcha를 병렬 처리, 한 URL 실패가 전체 배치를 중단시키지 않음
- 표준 라이브러리만 사용, 외부 의존성이 없어 설치와 관리가 간단
의존성이 없고 비용을 미리 알 수 있으며, 경쟁사보다 약 3배 저렴한 가격($0.40/1000)을 제공합니다.
02 / 내 상황에 맞을까?
이럴 때 써요,
선택 전에 확인해요.
이럴 때 써요
- 웹 스크래핑이나 자동화 도구에서 Cloudflare Challenge/Turnstile 차단을 자동으로 해결하고 계속 진행
- 여러 URL의 captcha를 배치로 병렬 처리하면서 estimate_cost()로 사전에 비용 계산해 예산 관리
이럴 땐 다시 확인해요
아래 준비 조건이 맞지 않으면 먼저 환경을 준비해 주세요.
- Python 3.8 이상
- Clearance API 키 (clearance.sh에 가입하여 발급)
깃밥 한국어 요약의 활용 예와 준비 조건을 옮겼어요.
03 / 시작하려면
첫 걸음,
차근차근.
준비할 것
- Python 3.8 이상
- Clearance API 키 (clearance.sh에 가입하여 발급)
- 패키지 설치
pip install captcha-api
- API 키를 환경변수로 내보내기
export CLEARANCE_API_KEY="your_key_here"
- CLI로 Challenge captcha 풀기
captcha-api challenge --url https://example.com/login
- Python에서 Solver로 풀기
from captcha_api import Solver
solver = Solver.from_env()
result = solver.challenge("https://example.com/login")
print(result.token)
- Turnstile captcha 풀기 (sitekey 필수)
result = solver.turnstile("https://example.com/login", sitekey="0x4AAAAAAAxxxx")
print(result.token)
- 배치 처리 전 비용 예측
captcha-api estimate --count 10000
명령은 기존 요약에 적힌 그대로예요. 실행하거나 설치 성공을 검증하지 않았어요. 공식 소요시간 미제시.
04 / 이웃 레포
어떤 레포와 연결될까요?
비교 연결망의 정적 스냅샷 · 관계 종류와 기록된 근거예요. 현재 공개된 레포만 표시해요.
CircuitSavage/cloudflare-turnstile-reversed ↗
구체 GitHub 토픽 공유: captcha,challenge,cloudflare,turnstile
repos.topics 교집합 (captcha,challenge,cloudflare,turnstile)
연결망 스냅샷 원자료 ↗microlinkhq/is-antibot ↗
구체 GitHub 토픽 공유: captcha,challenge,cloudflare
repos.topics 교집합 (captcha,challenge,cloudflare)
연결망 스냅샷 원자료 ↗kowalski76057/cf-turnstile-token ↗
구체 GitHub 토픽 공유: captcha,cloudflare,turnstile
repos.topics 교집합 (captcha,cloudflare,turnstile)
연결망 스냅샷 원자료 ↗biusberline/cloudflare-turnstile-solver ↗
구체 GitHub 토픽 공유: turnstile,cloudflare
repos.topics 교집합 (turnstile,cloudflare)
연결망 스냅샷 원자료 ↗