If I open a file using urllib2, like so:
remotefile = urllib2.urlopen(\'http://example.com/somefile.zip\')
Is there an easy way to get the
not that I know of.
but you can parse it easy enough like this:
url = 'http://example.com/somefile.zip' print url.split('/')[-1]
url = 'http://example.com/somefile.zip'