[Tutor] Downloading Files from the net

Kent Johnson kent37 at tds.net
Mon Sep 29 00:00:03 CEST 2008

On Sun, Sep 28, 2008 at 12:51 PM, Timo <timovwb at gmail.com> wrote:
> What is the best/correct way to download files from a webpage?
> www.example.com/example.mp3 for instance.
> I know how to open the site (with urllib), but have no idea how to write the
> file to the harddisk.

urllib.urlretrieve() will do it if you don't need anything fancy like


More information about the Tutor mailing list