From cec804951b97bcab81551bb8c7a1a1e1c473aaa7 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Wed, 7 Oct 2020 13:03:27 +0800 Subject: [Update] --- ATRI/modules/response/__init__.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 ATRI/modules/response/__init__.py (limited to 'ATRI/modules/response') diff --git a/ATRI/modules/response/__init__.py b/ATRI/modules/response/__init__.py deleted file mode 100644 index 4a47140..0000000 --- a/ATRI/modules/response/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding:utf-8 -*- -import requests -from aiohttp import ClientSession - -def request_api(url): - response = requests.request("GET", url) - html = response.text - return html - -def request_api_params(url, params): - response = requests.get(url, params = params) - html = response.text - return html - -async def post_bytes(url, headers=None,data=None): - async with ClientSession() as asyncsession: - async with asyncsession.post(url,headers=headers,data=data) as response: - b = await response.read() - return b \ No newline at end of file -- cgit v1.2.3