The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 9688752e authored by Vincent A's avatar Vincent A

python3: port anticaptcha and deathbycaptcha

parent f573d0d3
......@@ -42,7 +42,7 @@ def post_image(self, data):
"clientKey": self.apikey,
"task": {
"type": "ImageToTextTask",
"body": b64encode(data),
"body": b64encode(data).decode('ascii'),
"phrase": False,
"case": False,
"numeric": False,
......
......@@ -45,9 +45,9 @@ def check_correct(self, reply):
raise UnsolvableCaptcha()
def create_job(self, data):
data64 = 'base64:%s' % b64encode(data)
data64 = b'base64:%s' % b64encode(data)
files = {
'captchafile': ('captcha.jpg', BytesIO(data64.encode('ascii'))),
'captchafile': ('captcha.jpg', BytesIO(data64)),
}
post = OrderedDict([
......
......@@ -9,6 +9,7 @@ allrecipes
amazon
ameli
americanexpress
anticaptcha
apec
arte
axabanque
......@@ -36,6 +37,7 @@ creditcooperatif
creditdunord
creditmutuel
cuisineaz
deathbycaptcha
delubac
dlfp
ebonics
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment