Cara menguji apakah halaman web adalah permintaan python gambar

import requests
response = requests.head(url)
print response.headers.get('content-type')
Ugliest Unicorn