Skip to content

Instantly share code, notes, and snippets.

@lalabuy948
Created May 12, 2021 13:58
Show Gist options
  • Save lalabuy948/8287a52cd0d648b12b402d8e6bd41662 to your computer and use it in GitHub Desktop.
Save lalabuy948/8287a52cd0d648b12b402d8e6bd41662 to your computer and use it in GitHub Desktop.
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