-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5ab335
commit c78ff56
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from .capmonster import Capmonster | ||
|
||
class AmazonWafTask(Capmonster): | ||
def __init__(self, client_key): | ||
super(AmazonWafTask, self).__init__(client_key) | ||
|
||
def create_task(self, website_url: str, website_key: str, challenge_script: str, captcha_script: str, | ||
context: str, iv: str, cookieSolution: bool = False): | ||
data = { | ||
"clientKey": self._client_key, | ||
"task": { | ||
"type": "AmazonTaskProxyless", | ||
"websiteURL": website_url, | ||
"websiteKey": website_key, | ||
"challengeScript": challenge_script, | ||
"captchaScript": captcha_script, | ||
"context": context, | ||
"iv": iv, | ||
"cookieSolution": cookieSolution | ||
} | ||
} | ||
return self._make_request("createTask", data).get("taskId") |