Created
March 17, 2019 14:34
-
-
Save saurabh-hirani/b08b8b3eb98432d786e4d6e712c0d4c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import print_function | |
| import grequests | |
| url = "https://google.com" | |
| url_count = 10 | |
| pending_requests = [] | |
| for i in range(url_count): | |
| pending_requests.append(grequests.get(url, params={'page': i})) | |
| all_responses = grequests.map(pending_requests) | |
| print(all_responses) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment