From 3a9b7b0234ae630db3264461797ea5ba2be6a924 Mon Sep 17 00:00:00 2001 From: solya0x <41440448+0xSalikh@users.noreply.github.com> Date: Tue, 23 Jul 2024 04:47:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0=D0=B3=D0=B0=20=D1=81=20?= =?UTF-8?q?SSL=20=D0=A1=D0=B5=D1=80=D1=82=D0=B8=D1=84=D0=B8=D0=BA=D0=B0?= =?UTF-8?q?=D1=82=D0=BE=D0=BC=D0=B8=20=D0=BD=D0=B0=20MacOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot/core/tapper.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/bot/core/tapper.py b/bot/core/tapper.py index 1b1eb64..2f4a3a2 100644 --- a/bot/core/tapper.py +++ b/bot/core/tapper.py @@ -112,7 +112,8 @@ async def apply_boost(self, http_client: aiohttp.ClientSession, boost_type: str) response_text = '' try: response = await http_client.post(url='https://api.tapswap.club/api/player/apply_boost', - json={'type': boost_type}) + json={'type': boost_type}, + ssl=False) response_text = await response.text() response.raise_for_status() @@ -128,7 +129,8 @@ async def upgrade_boost(self, http_client: aiohttp.ClientSession, boost_type: st response_text = '' try: response = await http_client.post(url='https://api.tapswap.club/api/player/upgrade', - json={'type': boost_type}) + json={'type': boost_type}, + ssl=False) response_text = await response.text() response.raise_for_status() @@ -144,7 +146,8 @@ async def claim_reward(self, http_client: aiohttp.ClientSession, task_id: str) - response_text = '' try: response = await http_client.post(url='https://api.tapswap.club/api/player/claim_reward', - json={'task_id': task_id}) + json={'task_id': task_id}, + ssl=False) response_text = await response.text() response.raise_for_status() @@ -166,7 +169,9 @@ async def send_taps(self, http_client: aiohttp.ClientSession, taps: int) -> dict http_client.headers['Content-Id'] = str(content_id) - response = await http_client.post(url='https://api.tapswap.club/api/player/submit_taps', json=json_data) + response = await http_client.post(url='https://api.tapswap.club/api/player/submit_taps', + json=json_data, + ssl=False) response_text = await response.text() response.raise_for_status() @@ -181,7 +186,7 @@ async def send_taps(self, http_client: aiohttp.ClientSession, taps: int) -> dict async def check_proxy(self, http_client: aiohttp.ClientSession, proxy: Proxy) -> None: try: - response = await http_client.get(url='https://httpbin.org/ip', timeout=aiohttp.ClientTimeout(5)) + response = await http_client.get(url='https://httpbin.org/ip', timeout=aiohttp.ClientTimeout(5), ssl=False) ip = (await response.json()).get('origin') logger.info(f"{self.session_name} | Proxy IP: {ip}") except Exception as error: