All Projects → Matthew17-21 → Captcha-Tools

Matthew17-21 / Captcha-Tools

Licence: MIT license
All-in-one Python (And now Go!) module to help solve captchas with Capmonster, 2captcha and Anticaptcha API's!

Programming Languages

go
31211 projects - #10 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Captcha-Tools

2captcha-php
PHP package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 25 (+8.7%)
Mutual labels:  recaptcha, captcha, hcaptcha
2captcha-go
Golang Module for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 31 (+34.78%)
Mutual labels:  recaptcha, captcha, hcaptcha
Hooman
http interceptor to hoomanize cloudflare requests
Stars: ✭ 82 (+256.52%)
Mutual labels:  scraper, recaptcha, captcha
2captcha-python
Python 3 package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 140 (+508.7%)
Mutual labels:  recaptcha, captcha, hcaptcha
dcat-auth-captcha
Sliding captcha for dcat-admin auth / dcat-admin登陆 滑动验证插件 多平台支持
Stars: ✭ 38 (+65.22%)
Mutual labels:  recaptcha, captcha, hcaptcha
wp-recaptcha-integration
WordPress reCaptcha integration supporting Ninja Forms and Contact Form 7
Stars: ✭ 50 (+117.39%)
Mutual labels:  recaptcha, captcha
CapMonsterCloud
a C# wrapper for CapMonster Cloud API
Stars: ✭ 17 (-26.09%)
Mutual labels:  recaptcha, captcha
scrapman
Retrieve real (with Javascript executed) HTML code from an URL, ultra fast and supports multiple parallel loading of webs
Stars: ✭ 21 (-8.7%)
Mutual labels:  scraper, scraping
proxycrawl-python
ProxyCrawl Python library for scraping and crawling
Stars: ✭ 51 (+121.74%)
Mutual labels:  scraper, scraping
recaptcha2
Easy verifier for google reCAPTCHA version 2 for Node.js and Express.js
Stars: ✭ 48 (+108.7%)
Mutual labels:  recaptcha, captcha
ha-multiscrape
Home Assistant custom component for scraping (html, xml or json) multiple values (from a single HTTP request) with a separate sensor/attribute for each value. Support for (login) form-submit functionality.
Stars: ✭ 103 (+347.83%)
Mutual labels:  scraper, scraping
copycat
A PHP Scraping Class
Stars: ✭ 70 (+204.35%)
Mutual labels:  scraper, scraping
diffbot-php-client
[Deprecated - Maintenance mode - use APIs directly please!] The official Diffbot client library
Stars: ✭ 53 (+130.43%)
Mutual labels:  scraper, scraping
RARBG-scraper
With Selenium headless browsing and CAPTCHA solving
Stars: ✭ 38 (+65.22%)
Mutual labels:  captcha, scraping
Server-Captcha
Protect Your Server From Automated Bots With Captcha Now !
Stars: ✭ 18 (-21.74%)
Mutual labels:  recaptcha, captcha
simple-recaptcha-v3
🤖 This repository contains simple reCAPTCHA v3 integration for your Laravel application.
Stars: ✭ 25 (+8.7%)
Mutual labels:  recaptcha, captcha
Instagram-to-discord
Monitor instagram user account and automatically post new images to discord channel via a webhook. Working 2022!
Stars: ✭ 113 (+391.3%)
Mutual labels:  scraper, scraping
esaj
Scrapers for many e-SAJ systems
Stars: ✭ 35 (+52.17%)
Mutual labels:  scraper, captcha
angel.co-companies-list-scraping
No description or website provided.
Stars: ✭ 54 (+134.78%)
Mutual labels:  scraper, scraping
wget-lua
Wget-AT is a modern Wget with Lua hooks, Zstandard (+dictionary) WARC compression and URL-agnostic deduplication.
Stars: ✭ 52 (+126.09%)
Mutual labels:  scraper, scraping

Captcha Tools

Python module to help solve captchas with Capmonster, 2Captcha and Anticaptcha API's!

Go(lang)

To see documentation for the Go implementation, click here

Install

pip3 install captchatools
To update
pip3 install -U captchatools

How to use

Getting reCAPTCHA Tokens

import captchatools
solver = captchatools.captcha_harvesters(solving_site="capmonster", api_key="YOUR API KEY", sitekey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", captcha_url="https://www.google.com/recaptcha/api2/demo")
captcha_answer = solver.get_token()

or

from captchatools import captcha_harvesters, exceptions
solver = captcha_harvesters(solving_site=1, api_key="YOUR API KEY", sitekey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", captcha_url="https://www.google.com/recaptcha/api2/demo")
captcha_answer = solver.get_token()

Getting Normal Captcha Tokens

import captchatools
solver = captchatools.captcha_harvesters(solving_site=2, captcha_type="normal", api_key="YOUR API KEY HERE")
url = "https://www.scienceabc.com/wp-content/uploads/ext-www.scienceabc.com/wp-content/uploads/2016/07/Captcha-ex.jpg-.jpg"
text_cap_answer = solver.get_normal(url)
Parameter Required Type Default Description
api_key true String - The API Key for the captcha solving site
solving_site true String (name of site) or int (site ID) "capmonster" Captcha solving site
sitekey true String - Sitekey from the site where captcha is loaded
captcha_url true String - URL where the captcha is located
captcha_type false String "v2" Type of captcha you are solving. Either captcha v2, v3 or hcaptcha (hcap works aswell)
invisible_captcha false bool false If the captcha is invisible or not.
This param is only required when solving invisible captchas
min_score false double 0.7 Minimum score for v3 captchas.
This param is only required when solving V3 and it needs a higher / lower score
action false String "verify" Action that is associated with the V3 captcha.
This param is only required when solving V3 captchas
soft_id false int 4782723 2captcha Developer ID.
Developers get 10% of spendings of their software users.

Supported Sites

Site-Specific Support:
Site Site ID Captcha Types Supported Task Types Supported
Capmonster 1 Recaptcha V2,
Recaptcha V3,
HCaptcha
RecaptchaV2TaskProxyless,
RecaptchaV3TaskProxyless,
HCaptchaTaskProxyless,
ImageToTextTask
Anticaptcha 2 Recaptcha V2,
Recaptcha V3,
HCaptcha
RecaptchaV2TaskProxyless,
RecaptchaV3TaskProxyless,
HCaptchaTaskProxyless
ImageToTextTask
2Captcha 3 Recaptcha V2,
Recaptcha V3,
HCaptcha
-

Recommendations

  1. For 2Captcha, don't run more than 60 tasks per API key.
  2. Handle exceptions appropriately.
    • If a NoBalanceException is thrown, tasks should stop. Some sites will temporarily ban IP's if constant requests come in.

Exceptions

Exception Raised
NoBalanceException Balance is below 0 for captcha solving site
WrongAPIKeyExceptionException Incorrect API Key for captcha solving site
WrongSitekeyException Incorrect sitekey
NoHarvesterException When the user did not / incorrectly chose a captcha harvester. Refer to the guide
CaptchaIMGTooBig The size of the captcha image is too big for the solving service.
FailedToGetCapIMG Failed to get the captcha image from the URL.
Tries 3 times before getting thrown.
from captchatools import captcha_harvesters, exceptions as captchaExceptions
try:
    ...
except captchaExceptions.NoBalanceException:
    print("No balance.")

or

import captchatools
try:
    ...
except captchatools.NoBalanceException:
    print("No balance.")

TO DO

  1. [] Document code better
  2. [] 2Captcha
    • [] Clean up code
    • [] Proxy support
    • [] Cookie support
    • [] User Agent Support
    • [] Different type of captchas
  3. [] Anticaptcha
    • [] Clean up code
    • [] Proxy support
    • [] Cookie support
    • [] User Agent Support
    • [] Different type of captchas
  4. [] Capmonster
    • [] Clean up code
    • [] Proxy support
    • [] Cookie support
    • [] User Agent Support
    • [] Different type of captchas
  5. [] Add DeathByCaptcha
  6. [] Release in Go
  7. [] Allow for refunds
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].