diff options
author | Kyomotoi <[email protected]> | 2020-10-07 13:03:27 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-10-07 13:03:27 +0800 |
commit | cec804951b97bcab81551bb8c7a1a1e1c473aaa7 (patch) | |
tree | 03b7204af6ebc869e887494ab2609a6e9b7fd72c /ATRI/modules/response | |
parent | ab467e8788b7ef8382bab63fb1a91c8b6305c501 (diff) | |
download | ATRI-cec804951b97bcab81551bb8c7a1a1e1c473aaa7.tar.gz ATRI-cec804951b97bcab81551bb8c7a1a1e1c473aaa7.tar.bz2 ATRI-cec804951b97bcab81551bb8c7a1a1e1c473aaa7.zip |
[Update]
Diffstat (limited to 'ATRI/modules/response')
-rw-r--r-- | ATRI/modules/response/__init__.py | 19 |
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 |