Skip to content

Commit e3b5972

Browse files
committed
docs: align example instructions
1 parent 4fda5fd commit e3b5972

31 files changed

Lines changed: 50 additions & 38 deletions

‎examples/async/balance.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Example: Check the current captcha solver account balance without creating a captcha task.
1+
"""Example: Check the current Captcha Solver account balance without creating a CAPTCHA task.
22
33
What it does:
44
This example shows how to check the current Captcha Solver account balance without creating a CAPTCHA task. It uses AsyncCaptchaClient.get_balance() and returns the account balance.
@@ -10,7 +10,6 @@
1010
1111
Prerequisites:
1212
Set the CAPTCHA_API_KEY environment variable.
13-
Returns the current available balance of your account.
1413
"""
1514

1615
import asyncio

‎examples/async/coordinates.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Example: Solve click-based image captchas from bundled local images without a proxy.
1+
"""Example: Solve click-based image CAPTCHAs from bundled local images without a proxy.
22
33
What it does:
44
This example shows how to solve click-based image CAPTCHAs from bundled local images without a proxy. It uses CoordinatesTask and AsyncCaptchaClient.solve(), returning pixel coordinates to click.

‎examples/async/geetest_v3_proxy.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
real endpoint -- this script will not run end-to-end as-is. Replace it with a request
1919
to your actual target page (or wherever it exposes a fresh `challenge` value) before
2020
running this example. It's here only to illustrate where that fetch belongs in the flow.
21+
Replace the proxy placeholders with your own proxy settings.
2122
"""
2223

2324
import asyncio

‎examples/async/geetest_v4_proxy.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
GeeTest v4 drops gt/challenge entirely. It uses captcha_id instead, which
1616
(unlike v3's challenge) is static per site, so it doesn't need to be
1717
re-fetched for every request.
18+
Replace the proxy placeholders with your own proxy settings.
1819
"""
1920

2021
import asyncio

‎examples/async/image_to_text.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Example: Recognize text in bundled local captcha images without a proxy.
1+
"""Example: Recognize text in bundled local CAPTCHA images without a proxy.
22
33
What it does:
44
This example shows how to recognize text in bundled local CAPTCHA images without a proxy. It uses ImageToTextTask and AsyncCaptchaClient.solve(), returning the recognized text.
@@ -12,6 +12,7 @@
1212
Prerequisites:
1313
Set the CAPTCHA_API_KEY environment variable.
1414
Ready to run as-is: sample captcha images are bundled in examples/assets/.
15+
Use optional fields to give hints to the worker for faster solving.
1516
"""
1617

1718
import asyncio

‎examples/async/recaptcha_v2_enterprise_proxy.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Example: Solve reCAPTCHA v2 enterprise through your own proxy.
1+
"""Example: Solve reCAPTCHA v2 Enterprise through your own proxy.
22
33
What it does:
44
This example shows how to solve reCAPTCHA v2 Enterprise through your own proxy. It uses RecaptchaV2EnterpriseTask and AsyncCaptchaClient.solve(), returning a gRecaptchaResponse token.
@@ -13,6 +13,7 @@
1313
Set the CAPTCHA_API_KEY environment variable.
1414
Replace websiteURL and websiteKey with values from your target page.
1515
If the site uses enterprisePayload, extract and pass it or the token may be rejected.
16+
Replace the proxy placeholders with your own proxy settings.
1617
"""
1718

1819
import asyncio

‎examples/async/recaptcha_v2_enterprise_proxyless.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Example: Solve reCAPTCHA v2 enterprise without a proxy.
1+
"""Example: Solve reCAPTCHA v2 Enterprise without a proxy.
22
33
What it does:
44
This example shows how to solve reCAPTCHA v2 Enterprise without a proxy. It uses RecaptchaV2EnterpriseTaskProxyless and AsyncCaptchaClient.solve(), returning a gRecaptchaResponse token.

‎examples/async/recaptcha_v3.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
66
How it works:
77
STEP-01 - Configure AsyncCaptchaClient with the API key.
8-
STEP-02 - Obtain the task parameters. Extract websiteURL, websiteKey, pageAction, and the required minimum score from the target page.
8+
STEP-02 - Obtain the task parameters. Extract websiteURL, websiteKey, and pageAction from the target page, then choose the required minimum score.
99
STEP-03 - Create RecaptchaV3TaskProxyless and pass it to await solver.solve(task), which creates and polls the task.
1010
STEP-04 - Print a gRecaptchaResponse token. Applying the solution and verifying acceptance are target-specific.
1111
1212
Prerequisites:
1313
Set the CAPTCHA_API_KEY environment variable.
14-
Replace websiteURL, websiteKey, and minScore with values from your target
15-
page, and pass pageAction if the site uses it -- this increases the
16-
chance of the token being accepted.
14+
Replace websiteURL and websiteKey with values from your target page, pass
15+
pageAction if the site uses it, and choose the minimum score your
16+
integration requires.
1717
"""
1818

1919
import asyncio

‎examples/async/tencent_proxy.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
"""Example: Solve Tencent captcha through your own proxy.
1+
"""Example: Solve Tencent CAPTCHA through your own proxy.
22
33
What it does:
44
This example shows how to solve Tencent CAPTCHA through your own proxy. It uses TencentTask and AsyncCaptchaClient.solve(), returning appid, ret, ticket, and randstr values.
55
66
How it works:
77
STEP-01 - Configure AsyncCaptchaClient with the API key.
8-
STEP-02 - Obtain the task parameters. Extract the Tencent parameters from the target page and provide your proxy settings.
8+
STEP-02 - Obtain the task parameters. Extract websiteURL, appId, and any non-default captchaScript from the target page, then provide your proxy settings.
99
STEP-03 - Create TencentTask and pass it to await solver.solve(task), which creates and polls the task.
1010
STEP-04 - Print appid, ret, ticket, and randstr values. Applying the solution and verifying acceptance are target-specific.
1111
1212
Prerequisites:
1313
Set the CAPTCHA_API_KEY environment variable.
1414
Replace websiteURL and appId with values from your target page.
1515
Pass captchaScript if the site uses a non-default script URL.
16+
Replace the proxy placeholders with your own proxy settings.
1617
"""
1718

1819
import asyncio

‎examples/async/tencent_proxyless.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Example: Solve Tencent captcha without a proxy.
1+
"""Example: Solve Tencent CAPTCHA without a proxy.
22
33
What it does:
44
This example shows how to solve Tencent CAPTCHA without a proxy. It uses TencentTaskProxyless and AsyncCaptchaClient.solve(), returning appid, ret, ticket, and randstr values.

0 commit comments

Comments
 (0)