https://2captcha.com/p/mtcaptcha-bypass
MTCaptcha is a captcha service that is designed to be user-friendly and accessible. However, it can still be a challenge for some users to solve. 2Captcha is a captcha-solving service that can be used to bypass MTCaptcha and other captchas on any site.
How to bypass MTCaptcha with 2Captcha
- Create an account on 2Captcha and add funds.
- Note the API key and site key of the captcha you want to solve.
- Install the following libraries:
2captcha-python
,selenium
, andwebdriver-manager
. - Write a Python file where you write captcha-solving code.
- Write Selenium code to visit the target page and solve the captcha using 2Captcha.
Here is an example of how to use Selenium and 2Captcha to solve MTCaptcha:
from selenium.webdriver.common.by import By
from twocaptcha import TwoCaptcha
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
from selenium import webdriver
solver = TwoCaptcha('YOUR_API_KEY')
site_key = 'SITE_KEY'
options = webdriver.ChromeOptions()
options.add_argument('--disable-blink-features=AutomationControlled')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--disable-gpu')
options.add_argument('--no-sandbox')
options.add_argument('--disable-extensions')
options.add_argument('--disable-infobars')
options.add_argument('--disable-notifications')
options.add_argument('--disable-popup-blocking')
options.add_argument('--disable-save-password-bubble')
options.add_argument('--disable-translate')
options.add_argument('--disable-web-security')
options.add_argument('--ignore-certificate-errors')
options.add_argument('--start-maximized')
driver = webdriver.Chrome(service=ChromeService(executable_path=ChromeDriverManager().install()), options=options)
driver.get('https://www.example.com')
iframe = driver.find_element(By.XPATH, '//iframe[@title="MTCaptcha"]')
driver.switch_to.frame(iframe)
mtcaptcha = driver.find_element(By.XPATH, '//div[@class="mtcaptcha-container"]')
result = solver.recaptcha(sitekey=site_key, url=driver.current_url)
driver.execute_script(f'document.getElementById("mtcaptcha-response").innerHTML="{result["code"]}";')
driver.execute_script('document.getElementById("mtcaptcha-form").submit();')
driver.quit()
Pricing
2Captcha offers different pricing options for different types of captchas. The pricing ranges from $0.50 to $50.00 per 1000 captchas, depending on the type of captcha. For example, reCAPTCHA V2 costs between $1.00 and $2.99 per 1000 captchas, while hCaptcha costs $2.99 per 1000 captchas.
Other resources
2Captcha has a GitHub repository where you can find libraries and modules for easy integration with their API. There are also several tutorials available online that demonstrate how to use 2Captcha with different programming languages.
Conclusion
2Captcha is a useful tool for bypassing MTCaptcha and other captchas on any site. The service is regularly used by thousands of users, and they offer a variety of pricing options depending on the type of captcha.