initial creation
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import requests
|
||||
|
||||
response = requests.get("https://www.python.org") # <1>
|
||||
|
||||
for header, value in sorted(response.headers.items()): # <2>
|
||||
print(header, value)
|
||||
print()
|
||||
|
||||
print(response.content[:200].decode()) # <3>
|
||||
print('...')
|
||||
print(response.content[-200:].decode()) # <4>
|
||||
Reference in New Issue
Block a user