Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VirusNoirrr committed Feb 29, 2024
1 parent 0862fb9 commit f6b2dc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ProCap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def checkTask(self, id):
request = requests.get("https://api.procap.wtf/checkTask/"+id)
return Task(request.json())
def solve(self, url, sitekey, proxy=None, userAgent=None, rqdata=None):
task = self.createTask(self, url, sitekey, proxy, userAgent, rqdata)
task = self.createTask(url, sitekey, proxy, userAgent, rqdata)
if not task.success:
return task.message
while True:
captcha_challenge = self.checkTask(task.id)
if captcha_challenge.message != "solving" and captcha_challenge.message != "solved":
Expand Down

0 comments on commit f6b2dc7

Please sign in to comment.