Skip to content

Repository files navigation

CapMonster Python Captcha Solver & Anti-Bot Bypass API Library

PyPI versionPyPI downloadsPython versionLicense: MIT

Official Python 3 package for easy integration with the CapMonster Cloud API — the fastest and most reliable automated captcha-solving service.

This wrapper allows you to seamlessly integrate high-speed AI captcha recognition into your Python web scraping, data extraction, and testing workflows. It is fully compatible with popular browser automation frameworks like Selenium, Playwright, Puppeteer, Scrapy, and BeautifulSoup.

🔥 Create a Free Account & Get Your API Key to start bypassing bot protections instantly!

🛠️ Key Features

  • Fast & Fully Automated: Solve captchas in seconds without human intervention.
  • 🤖 100% AI-Powered: Machine learning algorithms ensure the highest success rate.
  • 🌐 Browser Automation Ready: Easily plug into your Selenium or Playwright scripts.
  • 🛡️ Advanced WAF Bypass: Effortlessly bypass Cloudflare Turnstile, DataDome, Amazon WAF, and Imperva.
  • 💰 Cost-Effective: One of the most affordable solutions on the market for scale.

⚙️ Installation

Install the CapMonster Cloud Python client using pip:

pip install capmonstercloudclient

🚀 Quick Start & Usage Example

Prerequisite: You need an active CapMonster API key. Grab it from your dashboard.

Below is a standard example of solving a reCAPTCHA v2 (Proxyless) using asyncio. You can easily pass the resulting token into your Selenium or Playwright browser instances.

importasynciofromcapmonstercloudclientimportCapMonsterClient, ClientOptionsfromcapmonstercloudclient.requestsimportRecaptchaV2ProxylessRequest# Initialize the client with your CapMonster Cloud API keyclient_options=ClientOptions(api_key="<YOUR_API_KEY>")
cap_monster_client=CapMonsterClient(options=client_options)
asyncdefsolve_captcha():
# Setup the reCAPTCHA v2 requestrecaptcha2request=RecaptchaV2ProxylessRequest(
websiteUrl="https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high",
websiteKey="6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd"
)
# Await the solution tokenreturnawaitcap_monster_client.solve_captcha(recaptcha2request)
if__name__=="__main__":
responses=asyncio.run(solve_captcha())
print("Captcha Solved! Token:", responses)

🧩 Supported Captcha Recognition Types

Our Python API wrapper supports almost all modern anti-bot challenges. Click on the links below to view detailed API documentation and payload examples.

🔹 Classic Captchas

🔹 Custom Tasks (Anti-Bot & Advanced WAFs)

🔹 Complex Image Tasks


💡 Ready to supercharge your web automation?

Join thousands of developers effortlessly bypassing captchas.
👉 Sign up for CapMonster Cloud today and boost your scraper's success rate!

Releases

Packages

Used by

Contributors

Languages