|
|
@ -61,6 +61,22 @@ class Task():
|
|
|
|
self.last_url = url
|
|
|
|
self.last_url = url
|
|
|
|
return self.opener.open(request).read()
|
|
|
|
return self.opener.open(request).read()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def verify_password(password):
|
|
|
|
|
|
|
|
# Has to be overridden by inherited classes.
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def verify_image_captcha(solution):
|
|
|
|
|
|
|
|
# Has to be overridden by inherited classes.
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def verify_audio_captcha(solution):
|
|
|
|
|
|
|
|
# Has to be overridden by inherited classes.
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def verify_text_captcha(solution):
|
|
|
|
|
|
|
|
# Has to be overridden by inherited classes.
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class Captcha():
|
|
|
|
class Captcha():
|
|
|
|
image = None
|
|
|
|
image = None
|
|
|
|
audio = None
|
|
|
|
audio = None
|
|
|
|