summaryrefslogtreecommitdiff
path: root/ATRI/modules/response
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-10-07 13:03:27 +0800
committerKyomotoi <[email protected]>2020-10-07 13:03:27 +0800
commitcec804951b97bcab81551bb8c7a1a1e1c473aaa7 (patch)
tree03b7204af6ebc869e887494ab2609a6e9b7fd72c /ATRI/modules/response
parentab467e8788b7ef8382bab63fb1a91c8b6305c501 (diff)
downloadATRI-cec804951b97bcab81551bb8c7a1a1e1c473aaa7.tar.gz
ATRI-cec804951b97bcab81551bb8c7a1a1e1c473aaa7.tar.bz2
ATRI-cec804951b97bcab81551bb8c7a1a1e1c473aaa7.zip
[Update]
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