awsapilib.captcha package

Submodules

awsapilib.captcha.captcha module

Main code for captcha.

class awsapilib.captcha.captcha.Captcha2(api_token)[source]

Bases: Solver

2captcha solver.

solve(url)[source]

Presents a captcha image url and returns the captcha.

Parameters:

url (str) – The url to provide that should have the captcha image.

Returns:

The captcha.

Return type:

guess (str)

class awsapilib.captcha.captcha.Iterm[source]

Bases: Solver

Interactive captcha solver for iTerm terminals.

solve(url)[source]

Presents a captcha image and returns the user’s guess for the captcha.

Parameters:

url (str) – The url to provide that should have the captcha image.

Returns:

The guess of the user for the captcha.

Return type:

guess (str)

class awsapilib.captcha.captcha.Solver[source]

Bases: ABC, LoggerMixin

Interface for a Solver object.

abstract solve(url)[source]

Solves a url.

class awsapilib.captcha.captcha.Terminal[source]

Bases: Solver

Interactive captcha solver for standard terminals.

solve(url)[source]

Presents a captcha image url and returns the user’s guess for the captcha.

Parameters:

url (str) – The url to provide that should have the captcha image.

Returns:

The guess of the user for the captcha.

Return type:

guess (str)

awsapilib.captcha.captchaexceptions module

Custom exception code for captcha.

exception awsapilib.captcha.captchaexceptions.CaptchaError[source]

Bases: Exception

There was an error retrieving the captcha.

exception awsapilib.captcha.captchaexceptions.InvalidOrNoBalanceApiToken[source]

Bases: Exception

The api token provided either does not provide access or there is no money on the token to be used.

exception awsapilib.captcha.captchaexceptions.UnsupportedTerminal[source]

Bases: Exception

The terminal executing under is not supported.

Module contents

captcha package.

Import all parts from captcha here