Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VirusNoirrr authored Mar 10, 2024
1 parent 72092b5 commit 9462dfd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ProCap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ 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(url, sitekey, proxy, userAgent, rqdata)
while True:
task = self.createTask(url, sitekey, proxy, userAgent, rqdata)
if "busy" not in task.message:
break
else:
time.sleep(5)
if not task.success:
return task.message
while True:
Expand Down

0 comments on commit 9462dfd

Please sign in to comment.