I am making a minecraft name sniping bot. I have a list of tokens and minecrafts api lets you send three requests for each token, before blocking them. A request to it looks something like this:
requests.put(f'https://api.minecraftservices.com/minecraft/profile/name/{name}',
headers={"Authorization": "Bearer " + token,
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0",
"Content-Type": "application/json"})
Now I could just use a simple for loop and send all the requests that way, but it seems to be really slow and I am pretty sure there are ways to speed it up. I've heard of multithreading, multiproccessing and asyncio, but I am not really sure which one of them would be the fastest one and how to use them in the most efficient way. I would really appreciate it if someone could help me to figure this out.