blob: a0c0b07f4dfb0e6a3bb2f55965a82afef38d37f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from aiohttp import ClientSession, FormData
URL = "https://paste.ubuntu.com/"
async def paste(form_data) -> str:
async with ClientSession() as session:
async with session.post(url=URL, data=form_data) as r:
result = str(r.url).replace('https://', '')
return result
|