Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VirusNoirrr authored May 7, 2024
1 parent 8f01d43 commit 6f135eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProCap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, apikey) -> None:
def get_balance(self):
request = requests.get("https://api.procap.wtf/user")
return User(request.json())
def createTask(self, url, sitekey, proxy=None, userAgent=None, rqdata=None, isEnterprise=False, type="hCaptchaTask"):
def createTask(self, url=None, sitekey=None, proxy=None, userAgent=None, rqdata=None, isEnterprise=False, type="hCaptchaTask"):
payload = {
"clientKey": self.apikey,
"task": {
Expand All @@ -49,7 +49,7 @@ def checkTask(self, id):
"taskId": id
})
return Task(request.json())
def solve(self, url, sitekey, proxy=None, userAgent=None, rqdata=None, isEnterprise=False, type="hCaptchaTask"):
def solve(self, url=None, sitekey=None, proxy=None, userAgent=None, rqdata=None, isEnterprise=False, type="hCaptchaTask"):
task = self.createTask(url, sitekey, proxy, userAgent, rqdata, isEnterprise, type)
if task.error:
return task.error
Expand Down

0 comments on commit 6f135eb

Please sign in to comment.