Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions bot/core/tapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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()

Expand All @@ -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()

Expand All @@ -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()

Expand All @@ -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:
Expand Down