Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-scat committed Sep 2, 2022
1 parent 6f2f552 commit a3ce3f9
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/async_capy_puzzle.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from unicaps import AsyncCaptchaSolver, CaptchaSolvingService, exceptions # type: ignore

URL = 'https://www.capy.me/products/puzzle_captcha/'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')
USER_AGENT = ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 '
'(KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36')

Expand Down
2 changes: 1 addition & 1 deletion examples/async_geetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
URL = 'https://2captcha.com/demo/geetest'
INIT_PARAMS_URL = 'https://2captcha.com/api/v1/captcha-demo/gee-test/init-params?t={ms}'
URL_VERIFY = 'https://2captcha.com/api/v1/captcha-demo/gee-test/verify'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


async def main():
Expand Down
2 changes: 1 addition & 1 deletion examples/async_geetest_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

URL = 'https://2captcha.com/demo/geetest-v4'
URL_VERIFY = 'https://2captcha.com/api/v1/captcha-demo/gee-test-v4/verify'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


async def main():
Expand Down
2 changes: 1 addition & 1 deletion examples/async_hcaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from unicaps import AsyncCaptchaSolver, CaptchaSolvingService, exceptions # type: ignore

URL = 'https://democaptcha.com/demo-form-eng/hcaptcha.html'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


async def main():
Expand Down
2 changes: 1 addition & 1 deletion examples/async_keycaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

URL = 'https://2captcha.com/demo/keycaptcha'
URL_VERIFY = 'https://2captcha.com/api/v1/captcha-demo/key-captcha/verify'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


async def main():
Expand Down
2 changes: 1 addition & 1 deletion examples/async_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from unicaps import AsyncCaptchaSolver, CaptchaSolvingService, exceptions # type: ignore
from unicaps.common import WorkerLanguage # type: ignore

API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')
TEXT_CAPTCHA = 'If tomorrow is Sunday, what day is today?'
TEXT_CAPTCHA_ANSWER = 'saturday'

Expand Down
2 changes: 1 addition & 1 deletion examples/capy_puzzle.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from unicaps import CaptchaSolver, CaptchaSolvingService, exceptions # type: ignore

URL = 'https://www.capy.me/products/puzzle_captcha/'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')
USER_AGENT = ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 '
'(KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36')

Expand Down
2 changes: 1 addition & 1 deletion examples/geetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
URL = 'https://2captcha.com/demo/geetest'
INIT_PARAMS_URL = 'https://2captcha.com/api/v1/captcha-demo/gee-test/init-params?t={ms}'
URL_VERIFY = 'https://2captcha.com/api/v1/captcha-demo/gee-test/verify'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


def run(solver):
Expand Down
2 changes: 1 addition & 1 deletion examples/geetest_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

URL = 'https://2captcha.com/demo/geetest-v4'
URL_VERIFY = 'https://2captcha.com/api/v1/captcha-demo/gee-test-v4/verify'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


def run(solver):
Expand Down
2 changes: 1 addition & 1 deletion examples/hcaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from unicaps import CaptchaSolver, CaptchaSolvingService, exceptions # type: ignore

URL = 'https://democaptcha.com/demo-form-eng/hcaptcha.html'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


def run(solver):
Expand Down
2 changes: 1 addition & 1 deletion examples/keycaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

URL = 'https://2captcha.com/demo/keycaptcha'
URL_VERIFY = 'https://2captcha.com/api/v1/captcha-demo/key-captcha/verify'
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')


def run(solver):
Expand Down
2 changes: 1 addition & 1 deletion examples/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from unicaps import CaptchaSolver, CaptchaSolvingService, exceptions # type: ignore
from unicaps.common import WorkerLanguage # type: ignore

API_KEY = os.getenv('API_KEY_2CAPTCHA', default='YOUR_API_KEY')
API_KEY = os.getenv('API_KEY_2CAPTCHA', default='<PLACE_YOUR_API_KEY_HERE>')
TEXT_CAPTCHA = 'If tomorrow is Sunday, what day is today?'
TEXT_CAPTCHA_ANSWER = 'saturday'

Expand Down

0 comments on commit a3ce3f9

Please sign in to comment.