python script to download xml files on my server
        Posted  
        
            by Blankman
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Blankman
        
        
        
        Published on 2010-04-27T01:28:41Z
        Indexed on 
            2010/04/27
            1:33 UTC
        
        
        Read the original article
        Hit count: 341
        
I need a python script that will do the following:
- connect to a URL, and that URL will return a number like 1200. 
- Use the number, to download xml files named: 1 to x where x is the number from #1. 
- store the files in a particular directory. 
Sorry I've never written a python script, so if you could guide me along that would be great (maybe with a some comments).
I will be running this as a cron job if that matters.
© Stack Overflow or respective owner