Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/modules/get.py
2021-01-09 19:36:11 +08:00

8 lines
No EOL
234 B
Python

import aiohttp
async def main(url):
async with aiohttp.ClientSession() as session:
async with session.get(url, timeout=aiohttp.ClientTimeout(total=20)) as req:
return await req.text()
command = {'get': 'get'}