urlretrieve get file name

Sven sven.dahlstrand at gmail.com
Thu Nov 9 17:11:53 EST 2006


Hi guys and gals,

I'm wrestling with the urlretrieve function in the urllib module. I
want to download a file from a web server and save it locally with the
same name. The problem is the URL - it's on the form
http://www.page.com/?download=12345. It doesn't reveal the file name.
Some hints to point me in the right direction are greatly appreciated.

Sven




More information about the Python-list mailing list