Python

Python

We provide a library to make deploying services in Python-based applications easy. You only need to install the library and call the services directly. In the article below, we explain how to use seamlessly this library.

Installation

We prepared a Python-based library that you can install only with one comment in the terminal (or cmd in Windows). Using our service with this library would be really easier and you no longer need to implement this side of your application. you only need to call post-prepared functions.

1 pip3 install metabypass

Configuration

After you installed the library first you need to import it into your application:

1 from metabypass import MetaBypass

Now to connect your program to your Metabypass account, you need to set the following credentials from the Application section of your panel (if you delete your application, first generate a new one and then set new client_id and client_secret).

1 2 3 4 CLIENT_ID = 'YOUR_CLIENT_ID' CLIENT_SECRET = 'YOUR_CLIENT_SECRET' EMAIL = 'YOUR_ACCOUNT_EMAIL' PASSWORD = 'YOUR_ACCOUNT_PASSWORD'

Sample Code

Text Captcha
reCAPTCHA v2
reCAPTCHA v3
1 2 3 4 5 6 7 8 9 10 11 12 13 # If you do not install the Metabypass library before, first install it through this comment below: # pip install metabypass from metabypass import MetaBypass CLIENT_ID = 'YOUR_CLIENT_ID' # ****CHANGE HERE WITH YOUR VALUE******* CLIENT_SECRET = 'YOUR_CLIENT_SECRET' # ****CHANGE HERE WITH YOUR VALUE******* EMAIL = 'YOUR_ACCOUNT_EMAIL' # ****CHANGE HERE WITH YOUR VALUE******* PASSWORD = 'YOUR_ACCOUNT_PASSWORD' # ****CHANGE HERE WITH YOUR VALUE******* solver=MetaBypass(CLIENT_ID,CLIENT_SECRET,EMAIL,PASSWORD) # Defining 'numeric', 'min_len', and 'max_len' is optional. Their default values are 0. captcha_response = solver.image_captcha('YOUR_CAPTCHA_IMAGE_PATH',numeric=0,min_len=0,max_len=0) print(captcha_response)

Full documentation & samples in Github