Downloading multiple csv files from a website

kyosohma at gmail.com kyosohma at gmail.com
Fri Aug 17 09:56:12 EDT 2007


On Aug 17, 8:08 am, tkp... at hotmail.com wrote:
> I'd like to download data from the websitehttp://www.russell.com/Indexes/performance/daily_values_US.asp. On
> this web page, there are links to a number of .csv files, and I'd like
> to download all of them automatically each day. The file names are not
> visible on the page, but if I click on a link, a csv file opens in
> Excel. I've searched this group and looked into urllib, but have not
> found functions or code snippets that will allow me to download and
> rename each file. Would someone kindly point me to appropriate
> libraries/functions and/or code snippets that will get me started?
>
> Thanks in advance
>
> Thomas Philips

This link shows how to extract a list of URLs:
http://www.java2s.com/Code/Python/Network/ExtractlistofURLsinawebpage.htm

and this one shows how to download:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/83208

Mike




More information about the Python-list mailing list