Avatar ·

Asynchronous HTTP calls Grequests

📁 asynchrony, Advanced Python Topics, Help, example, requests

I always used the Requests library. But I can't change my memory there, you can send a request to only 1 http url and only then to another, etc. Grequests as it is written can send at least 10 URLs simultaneously asynchronously. But I don't know how to do it, I have already tried. The file has approximately 150 URLs. Code:

 import makerssimplese = 'http://shost-craft.su' with open("C:\\\\Cruelnetwork\\\\Cruel.need\\\\wolfs.txt") as werewolves: array = [row.strip()+simplesite for row