DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+1 =
Submit