lol-1-afk / l33t-API-Wrapper

python API wrapper for l33t

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

l33t.ltd python api wrapper

Description

Python 2/3 library for the anti-captcha web site

Installation

type pip install l33tapi in cmd and wait for loading

or install from pipy: https://pypi.org/project/l33tapi

Getting APi key

Register at l33t website. Go to the main page and click Profile. Follow "Infromation" tab. Here you can see your API key and balance in rubles(₽) image

Functions

  • get balance
  • get threads
  • get free theads
  • solve REcaptcha
  • solve image captcha

Official APi doc is avialable here

Examples

Get balance

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key")
print(solver.get_balance())

Get using api key

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key")
print(solver.get_key())

Updating key

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key-1")
solver.update_key("your-api-key2")

Get all threads & free threads

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key")
all_threads = solver.get_threads()
free_threads = solver.get_free_threads()
pinr(f"{all_threads} threads are possible and {free_threads} are free")

Send REcapthca v2 to server

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key")
cap_data = solver.solve_recaptcha(cap_version=2, sitekey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
                                  is_json=1, page_url="https://www.google.com/recaptcha/api2/demo")
captcha_id = cap_data["request"]

Send REcaptcha v3 to server

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key")
cap_data = solver.solve_recaptcha(cap_version=3, k_value="6LfwIo4UAAAAADauXCK0Ke_jIWNSW-z49N-IUj43",
                                  is_json=1, page_url="https://demo.codeforgeek.com/recaptcha-v3/")
captcha_id = cap_data["request"]

Sending image captcha to server

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key")
cap_data = solver.solve_imgcaptcha(captcha_str="long_base64_string_of_captcha", is_json=1)
captcha_id = cap_data["request"]

Get captcha answer

import l33tapi

solver = l33tapi.ApiWrapper("your-api-key")
print(solver.get_cap_answer(cap_id=326119, is_json=1))  # cap_id is captcha_id from the previous exmaples

About

python API wrapper for l33t


Languages

Language:Python 100.0%