Skip to main content

A simple package for interacting with the 9kw.eu anti-captcha service.

Project description

captcha9kw is a smallish Python package for making use of the 9kw.eu services, including solving of interactive captchas like Google’s reCaptcha or image-based captchas used by a lot of different services out there.

Important: This package is under construction and functionality may change.

Installation

You can install captcha9kw from PyPI using pip:

$ pip install captcha9kw

Getting started

Solving a simple image-based captcha is pretty easy:

docs/source/_static/captcha.gif

The captcha used here.

image-captcha

from captcha9kw import api9kw

conn = api9kw()
conn.api_key = "myapikeyhere"
print(f"Current account balance: {conn.balance} credits.")
captcha_id = conn.submit_image_captcha("mycaptcha.gif")
answer = conn.get_answer(captcha_id, wait=1)
if(answer == "spring water"):
    conn.captcha_feedback_correct(captcha_id)
else:
    conn.captcha_feedback_incorrect(captcha_id)

Similarly, for e.g. a reCaptcha:

interactive captcha

from captcha9kw import api9kw

conn = api9kw()
conn.api_key = "myapikeyhere"
print(f"Current account balance: {conn.balance} credits.")
website_url = "https://www.some.web.site"
website_key = obtain_site_key() # Supply your own code here
captcha_id = conn.submit_interactive_captcha(website_key, website_url)
answer = conn.get_answer(captcha_id, wait=1)
if(test_answer_on_site(answer)):
    conn.captcha_feedback_correct(captcha_id)
else:
    conn.captcha_feedback_incorrect(captcha_id)

For more information, check the API Reference.

9kw.eu

9kw.eu is a German captcha-solving service, providing a quick and easy API over HTTP GET/POST. Users can buy credits that will be deducted from based on the type of captcha in question and related settings. As a nice bonus, users can also earn credits for themselves by solving other people’s captchas, either through the website directly or through their custom client.

You can sign up for their service at: https://www.9kw.eu/register.html

Or, if you really wish to grant me a couple of free credits, sign up using my referral link: https://www.9kw.eu/register.html?r=210326

Note: Do not feel any pressure to use the referral link! I know a lot of

people feel iffy about such and I do not feel offended, if you prefer to not add me as your referrer.

Also, maybe take a look at their API.

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

captcha9kw-0.2.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

captcha9kw-0.2.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file captcha9kw-0.2.1.tar.gz.

File metadata

  • Download URL: captcha9kw-0.2.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.13.0-21-generic

File hashes

Hashes for captcha9kw-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8291be387fb0043c196ac54f210f0779e44051efdde366b0f86e3bdba6a98ee1
MD5 bf645645cec758c3f1dd6396051f3bd7
BLAKE2b-256 aff034bf4cb53e7891ca44d8ef12a4d109e0d5e1d790f3025be962c2cac62568

See more details on using hashes here.

File details

Details for the file captcha9kw-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: captcha9kw-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.13.0-21-generic

File hashes

Hashes for captcha9kw-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58403503106ecdcaf96e48e0b23e9104d3e3abcf107b21bbdc6afd4fc695b210
MD5 5c687f338d32489c1fec2bdf5c6e8aeb
BLAKE2b-256 2281da4a6502dcb54d2b6421b1ca393bef91c961afcc11b5b21fc2dbb15d3255

See more details on using hashes here.

Supported by

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