On Sun, Sep 28, 2008 at 12:51 PM, Timo <[EMAIL PROTECTED]> 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
authentication.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to