def get_timestamp_from_url(url):
 obj = urllib2.urlopen(url)
 return time.strptime(obj.info()['Last-Modified'], '%a, %d %b %Y %H:%M:%S GMT')

def get_timestamp_from_url ( url ) : obj = urllib2 . urlopen ( url ) return time . strptime ( obj . info ( ) [ 'Last-Modified' ] , '%a, %d %b %Y %H:%M:%S GMT' )
gets the last-modified field from the http header associated with the file pointed to by the url .