>Such tools already exist, although they may not be written in Python. In >particular, google on "wget" or "curl" for two very well-known >industrial-strength tools for downloading files from the web (and other >places). If you just want something that works, I recommend you learn >how to use those tools rather than re-inventing the wheel.
http://pycurl.sourceforge.net/ <- Python interface for curl. I have never used it, but it would probably do what you want. Normally I use os.system with wget, but it is a quick dirty hack. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor