summaryrefslogtreecommitdiff
path: root/ATRI/modules/response
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/modules/response')
-rw-r--r--ATRI/modules/response/__init__.py19
1 files changed, 0 insertions, 19 deletions
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