Created
May 12, 2021 13:58
-
-
Save lalabuy948/8287a52cd0d648b12b402d8e6bd41662 to your computer and use it in GitHub Desktop.
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 | |
response = requests.get('http://url.com') | |
for resp in response.history: | |
print(f'{resp.status_code} {resp.url}') | |
print(f'{resp.status_code} {resp.url}') | |
print(f'{response.status_code} {response.url}') | |
print(response.headers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment