Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VirusNoirrr authored May 7, 2024
1 parent 6914ca9 commit a27291f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pip install procap

### 💡 Examples

* 1 - Example (Solve)
* 1 - Example (hCaptcha Solve)

```python
from ProCap import ProCap
Expand All @@ -22,11 +22,11 @@ proxy = "" # Proxy (optional)
userAgent = "" # User agent (optional)
rqdata = "" # RQData (optional)
solver = ProCap(apikey)
captchaToken = solver.solve(url=url, sitekey=sitekey, proxy=proxy, userAgent=userAgent, rqdata=rqdata)
captchaToken = solver.solve(url=url, sitekey=sitekey, proxy=proxy, userAgent=userAgent, rqdata=rqdata, type="hCaptchaTask")
print(f"Captcha token : {captchaToken}")
```

* 2 - Example 2 (Create task)
* 2 - Example 2 (Create task for hCaptcha)

```python
from ProCap import ProCap
Expand All @@ -37,14 +37,14 @@ proxy = "" # Proxy (optional)
userAgent = "" # User agent (optional)
rqdata = "" # RQData (optional)
solver = ProCap(apikey)
captchaTask = solver.createTask(url=url, sitekey=sitekey, proxy=proxy, userAgent=userAgent, rqdata=rqdata)
captchaTask = solver.createTask(url=url, sitekey=sitekey, proxy=proxy, userAgent=userAgent, rqdata=rqdata, type="hCaptchaTask")
captchaTask.id # Task id
captchaTask.time # Time taken
captchaTask.message # Message
captchaTask.success # Success [True or False]
captchaTask.token # Captcha Token (if solved)
captchaTask.challengeKey # Captcha challenge key
captchaTask.response # Get api full response
captchaTask.response # Get api json response
```

* 3 - Example (Get Task Result)
Expand All @@ -60,7 +60,7 @@ captchaTask.message # Message
captchaTask.success # Success [True or False]
captchaTask.token # Captcha Token (if solved)
captchaTask.challengeKey # Captcha challenge key
captchaTask.response # Get api full response
captchaTask.response # Get api json response
```

* 4 - Example (Get account information)
Expand All @@ -75,5 +75,5 @@ user.next_reset # Get user next credits reset
user.daily_used # Get user daily used
user.daily_remaining # Get user daily remaining
user.plan_expire # Get user plan expiration
user.response # Get api full response
user.response # Get api json response
```

0 comments on commit a27291f

Please sign in to comment.