atconnect: anticaptcha API keys bugfix (#62)
This commit is contained in:
parent
2907c5a0c1
commit
5132b5ea3a
1 changed files with 3 additions and 3 deletions
|
@ -44,8 +44,7 @@ class AternosConnect:
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
|
|
||||||
self.cf_init = partial(CloudScraper)
|
self.session = CloudScraper()
|
||||||
self.session = self.cf_init()
|
|
||||||
self.sec = ''
|
self.sec = ''
|
||||||
self.token = ''
|
self.token = ''
|
||||||
self.atcookie = ''
|
self.atcookie = ''
|
||||||
|
@ -56,7 +55,8 @@ class AternosConnect:
|
||||||
Required for bypassing Cloudflare"""
|
Required for bypassing Cloudflare"""
|
||||||
|
|
||||||
old_cookies = self.session.cookies
|
old_cookies = self.session.cookies
|
||||||
self.session = self.cf_init()
|
captcha_kwarg = self.session.captcha
|
||||||
|
self.session = CloudScraper(captcha=captcha_kwarg)
|
||||||
self.session.cookies.update(old_cookies)
|
self.session.cookies.update(old_cookies)
|
||||||
del old_cookies
|
del old_cookies
|
||||||
|
|
||||||
|
|
Reference in a new issue