Python: How can i send multiple HTTP requests and receive the response?
How can I send like 1000 requests the fastest way? I know that you can send multiple request with grequests : urls = [ 'sample.url/1', 'sample.url/2', ... ] request = (grequests.get(u) for u in urls) print grequests.map(request) But the return is not the content. What I need is to get the json data, so for example something like this: request = (grequests.get(u) for u in urls) content = grequests.json(request) The items returned are not the content, but they do include the content. You can fetch all of the content like so: result = grequests.map(request) content = '\n'.join(r.content for r in