对于您的示例,可以使用以下命令:
>>> from urllib.request import urlopen
>>> url = 'http://booksdl.org/get.php?md5=5c9afff27ee041c34c698d62bd510616&key=D3JE34WPUY7LQ11U'
>>> response = urlopen(url)
>>> response.headers.get_filename()
'[Progress in Mathematics 244] Michael Atiyah (auth.), Pavel Etingof, Vladimir Retakh, I. M. Singer (eds.) - The Unity of Mathematics_ In Honor of the Ninetieth Birthday of I.M. Gelfand (2006, Birkhäuser Basel).pdf'
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句