Commit 47a46350 authored by Vincent A's avatar Vincent A

[anticaptcha] cosmetics

parent 83d4d401
......@@ -17,6 +17,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
# flake8: compatible
from __future__ import unicode_literals
from base64 import b64encode
......@@ -49,7 +51,7 @@ class AnticaptchaBrowser(APIBrowser):
"math": 0,
"minLength": 0,
"maxLength": 0,
}
},
}
r = self.request('/createTask', data=data)
self.check_reply(r)
......@@ -82,13 +84,13 @@ class AnticaptchaBrowser(APIBrowser):
def post_gcaptchav3(self, url, key, action):
data = {
"clientKey": self.apikey,
"task":{
"type":"RecaptchaV3TaskProxyless",
"task": {
"type": "RecaptchaV3TaskProxyless",
"websiteURL": url,
"websiteKey": key,
"minScore": 0.3,
"pageAction": action
}
"pageAction": action,
},
}
r = self.request('/createTask', data=data)
self.check_reply(r)
......@@ -161,7 +163,7 @@ class AnticaptchaBrowser(APIBrowser):
def get_balance(self):
data = {
"clientKey": self.apikey
"clientKey": self.apikey,
}
r = self.request('/getBalance', data=data)
self.check_reply(r)
......
......@@ -17,8 +17,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
# flake8: compatible
from __future__ import unicode_literals
from weboob.tools.backend import Module, BackendConfig
from weboob.capabilities.captcha import (
......
......@@ -17,6 +17,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
# flake8: compatible
from __future__ import unicode_literals
from weboob.capabilities.captcha import ImageCaptchaJob
......
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