Skip to content

Instantly share code, notes, and snippets.

@avneesh91
Created January 12, 2020 13:03
Show Gist options
  • Save avneesh91/178a9c24d3ec333b0c295337f7b4dab8 to your computer and use it in GitHub Desktop.
Save avneesh91/178a9c24d3ec333b0c295337f7b4dab8 to your computer and use it in GitHub Desktop.
Requests without futures
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