Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
177
Issues
177
List
Boards
Labels
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
47a46350
Commit
47a46350
authored
Jan 02, 2021
by
Vincent A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[anticaptcha] cosmetics
parent
83d4d401
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
modules/anticaptcha/browser.py
modules/anticaptcha/browser.py
+8
-6
modules/anticaptcha/module.py
modules/anticaptcha/module.py
+2
-1
modules/anticaptcha/test.py
modules/anticaptcha/test.py
+2
-0
No files found.
modules/anticaptcha/browser.py
View file @
47a46350
...
...
@@ -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
)
...
...
modules/anticaptcha/module.py
View file @
47a46350
...
...
@@ -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
(
...
...
modules/anticaptcha/test.py
View file @
47a46350
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment