head multiple urls.
This commit is contained in:
parent
3842cccf68
commit
b4aafbc9bc
1 changed files with 7 additions and 6 deletions
|
@ -7,9 +7,10 @@ import requests
|
||||||
|
|
||||||
from voussoirkit import clipext
|
from voussoirkit import clipext
|
||||||
|
|
||||||
url = clipext.resolve(sys.argv[1])
|
urls = clipext.resolve(sys.argv[1], split_lines=True)
|
||||||
page = requests.head(url)
|
for url in urls:
|
||||||
headers = dict(page.headers)
|
page = requests.head(url)
|
||||||
headers = json.dumps(headers, indent=4, sort_keys=True)
|
headers = dict(page.headers)
|
||||||
print(page)
|
headers = json.dumps(headers, indent=4, sort_keys=True)
|
||||||
print(headers)
|
print(page)
|
||||||
|
print(headers)
|
||||||
|
|
Loading…
Reference in a new issue