CURL to Python


import requests import aiohttp import asyncio url = 'https://lr.mba' headers = { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "Cookie": "remember_token=1|8cf; session=eyJfZnJlc2", "Pragma": "no-cache" } # Requests response = requests.get(url, headers=headers) print(response.text) # Aiohttp async def fetch(): async with aiohttp.ClientSession() as session: async with session.get(url, headers=headers) as response: return await response.text() print(asyncio.run(fetch()))