Python urllib.urlretrieve vs. Perl getstore
Adam S
musikintresserad at yahoo.se
Mon Nov 18 04:40:08 EST 2002
Python code snippet:
"file_url" is something like
"http://servername.intranet.company.com/serverspace/stored_file.tar.gz"
file_name is something like "/export/tmp/directory".
urllib.urlretrieve(file_url,file_name) # download the file
I'm running Python 2.2.
The perl 5.6.1 version uses 'getstore'
Adam
holger krekel wrote:
> Please be more specific and post relevant code-snippets and
> which python-library you use.
>
> IMO perl's as well as python's retrieving functions should be
> 99% IO-bound meaning that there shouldn't be a speed
> difference unless you are having a Gigabit-Internet-Connection :-)
>
> regards,
>
> holger
More information about the Python-list
mailing list