Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to test if a webpage is an image python requests

import requests
response = requests.head(url)
print response.headers.get('content-type')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #test #webpage #image #python #requests
ADD COMMENT
Topic
Name
9+1 =