parralel downloads

castironpi at gmail.com castironpi at gmail.com
Sun Mar 9 17:04:01 EDT 2008


> > > >>  my problem is that I would like to download several files at the time.
> > > >>  As I have not much experience in programming, could you point me the
> > > >>  easier ways to do this in python ?
>
> > Thank you both for your help. Threads are working for me. However, a
> > new problem for me is that the url I want to download are in an xml
> > file (I want to download podcasts), and is not the same as the file
> > downloaded:
>
> >http://www.sciam.com/podcast/podcast.mp3?e_id=86102326-0B1F-A3D4-74B2...
>
> > will be redirected to download:
>
> >http://podcast.sciam.com/daily/sa_d_podcast_080307.mp3
>
> > is there a way, knowing the first url to get the second at runtime in
> > my script ?
>
> Found it: geturl() does the job

That's for normalizing schemes.  I believe you subclass FancyURLopener
and override the read method.



More information about the Python-list mailing list