Created
January 12, 2020 13:03
-
-
Save avneesh91/178a9c24d3ec333b0c295337f7b4dab8 to your computer and use it in GitHub Desktop.
Requests without futures
This file contains 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
import requests | |
# need to get all the urls | |
url_list = ['https://docs.python.org/3/library/concurrent.futures.html', | |
'https://technokeeda.com', | |
'http://home.pipeline.com/~hbaker1/Futures.html'] | |
for url in url_list: | |
response = requests.get(url) | |
print(response, response.status_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment