Not related but still: You said you are using the requests library, but depending on your project you may want to consider using aiohttp instead, as requests is blocking and aiohttp isn’t.
Not related but still: You said you are using the requests library, but depending on your project you may want to consider using aiohttp instead, as requests is blocking and aiohttp isn’t.