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

8 lines
234 B
Python
Raw Normal View History

2021-01-09 11:36:11 +00:00
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'}