From 102b0656ccdd7162992c7b6fd32582cd6bb87a55 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 5 Mar 2017 23:09:37 +0100 Subject: [PATCH] IGNORE HTTPS! --- overwatch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overwatch.py b/overwatch.py index 8ce8b553..680c93d1 100644 --- a/overwatch.py +++ b/overwatch.py @@ -1,5 +1,6 @@ import asyncio import requests +import functools import strings as s loop = asyncio.get_event_loop() @@ -15,7 +16,7 @@ async def get_player_data(platform: str, region: str, battletag: str, **kwargs): # Unofficial API requires - for discriminator numbers battletag = battletag.replace("#", "-") # GET the json unofficial API response - r = await loop.run_in_executor(None, requests.get, + r = await loop.run_in_executor(None, functools.partial(requests.get, verify=False), 'https://api.lootbox.eu/{platform}/{region}/{battletag}/profile'.format(**locals())) # Ensure the request is successful if r.status_code == 200: