Skip to main content

A l33t Api Wrapper

Project description

l33t.ltd python api wrapper

Description

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

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 lib

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

Get using api key

import lib

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

Updating key

import lib

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

Get all threads & free threads

import lib

solver = 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 lib

solver = 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 lib

solver = 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 lib

solver = 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 lib

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

l33tapi-1.0.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

l33tapi-1.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file l33tapi-1.0.3.tar.gz.

File metadata

  • Download URL: l33tapi-1.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.8

File hashes

Hashes for l33tapi-1.0.3.tar.gz
Algorithm Hash digest
SHA256 26183beb221c3b158efbb8f94c32b1bcb1bc605aca7259d89655b6ae02af352d
MD5 ee954601b7f905aea36d3b7e25ed5896
BLAKE2b-256 7e4558efc483e807287118bf126402a5f0037a5f7c10d09d754c80081a857106

See more details on using hashes here.

File details

Details for the file l33tapi-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: l33tapi-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.8

File hashes

Hashes for l33tapi-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2d469fdafb0a4c108eafbc5049f19fd1184d4f7113ea798ff124c9f9e94f63
MD5 3c50628f4bac73bacd4096236aeeb0db
BLAKE2b-256 01e2bda5f952e7a4464c03274dc9fbf043331ab5906ac34b6537e89b3e942c74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page