Python - Bir Dosyanın Boyutunu Öğrenme
İnternet üzerindeki bir dosyanın boyutunu aşağıdaki şekilde öğrenebilirsiniz.
import urllib2
f = urllib2.urlopen('http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi')
print f.info().items().__getitem__(0)[1]
>>>
9688576