Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get image image memeory size in url inpyton requests

import urllib.request, io
url = 'http://www.elsecarrailway.co.uk/images/Events/TeddyBear-3.jpg'
path = urllib.request.urlopen(url)
meta = path.info()

>>>meta.get(name="Content-Length")
'269898' # ie  269kb
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #image #image #memeory #size #url #inpyton #requests
ADD COMMENT
Topic
Name
1+8 =