Skip to content

Commit 454e513

Browse files
ad-mclaude
andauthored
Replace KEY env var with ANTICAPTCHA_API_KEY in e2e tests, CI, and examples (#135)
Now that the library has generic support for the ANTICAPTCHA_API_KEY environment variable, use it consistently across all examples, e2e tests, and CI workflow instead of the generic KEY variable. https://claude.ai/code/session_01LZBUxCzwYksGZmqotE2s6z Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5708d62 commit 454e513

19 files changed

Lines changed: 20 additions & 20 deletions

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
- name: Run integration tests
3030
run: make test_e2e
3131
env:
32-
KEY: ${{ secrets.anticaptcha_key }}
32+
ANTICAPTCHA_API_KEY: ${{ secrets.anticaptcha_key }}
3333
PROXY_URL: "${{ secrets.proxy_url }}"

examples/async_balance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from python_anticaptcha import AsyncAnticaptchaClient
66

7-
api_key = environ["KEY"]
7+
api_key = environ["ANTICAPTCHA_API_KEY"]
88

99

1010
async def process():

examples/async_recaptcha_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from python_anticaptcha import AsyncAnticaptchaClient, NoCaptchaTaskProxylessTask
88

9-
api_key = environ["KEY"]
9+
api_key = environ["ANTICAPTCHA_API_KEY"]
1010
site_key_pattern = 'data-sitekey="(.+?)"'
1111
url = "https://www.google.com/recaptcha/api2/demo?invisible=false"
1212
EXPECTED_RESULT = "Verification Success... Hooray!"

examples/sync_antigate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from python_anticaptcha import AnticaptchaClient
55
from python_anticaptcha.tasks import AntiGateTaskProxyless
66

7-
api_key = environ["KEY"]
7+
api_key = environ["ANTICAPTCHA_API_KEY"]
88

99
URL = "https://anti-captcha.com/tutorials/v2-textarea"
1010

examples/sync_app_stat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from python_anticaptcha import AnticaptchaClient
66

7-
api_key = environ["KEY"]
7+
api_key = environ["ANTICAPTCHA_API_KEY"]
88

99
soft_id = argv[1]
1010
mode = argv[2]

examples/sync_balance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from python_anticaptcha import AnticaptchaClient
55

6-
api_key = environ["KEY"]
6+
api_key = environ["ANTICAPTCHA_API_KEY"]
77

88

99
def process():

examples/sync_funcaptcha_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from python_anticaptcha import AnticaptchaClient, FunCaptchaTask
88

9-
api_key = environ["KEY"]
9+
api_key = environ["ANTICAPTCHA_API_KEY"]
1010
site_key_pattern = 'public_key: "(.+?)",'
1111
site_key_pattern = 'public_key: "(.+?)",'
1212
surl_pattern = 'surl: "(.+?)",'

examples/sync_funcaptcha_selenium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from python_anticaptcha import AnticaptchaClient, FunCaptchaTask
1010

11-
api_key = environ["KEY"]
11+
api_key = environ["ANTICAPTCHA_API_KEY"]
1212
site_key_pattern = 'public_key: "(.+?)",'
1313
url = "https://client-demo.arkoselabs.com/solo-animals"
1414
client = AnticaptchaClient(api_key)

examples/sync_funcaptcha_selenium_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from python_anticaptcha import AnticaptchaClient, FunCaptchaProxylessTask
1111

12-
api_key = environ["KEY"]
12+
api_key = environ["ANTICAPTCHA_API_KEY"]
1313
site_key_pattern = 'public_key: "(.+?)",'
1414
url = "https://client-demo.arkoselabs.com/solo-animals"
1515
EXPECTED_RESULT = "Solved!"

examples/sync_hcaptcha_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from python_anticaptcha import AnticaptchaClient, HCaptchaTaskProxyless
77

8-
api_key = environ["KEY"]
8+
api_key = environ["ANTICAPTCHA_API_KEY"]
99
site_key_pattern = 'data-sitekey="(.+?)"'
1010
url = "http://hcaptcha.jawne.info.pl/"
1111
client = AnticaptchaClient(api_key)

0 commit comments

Comments
 (0)