Hello All, Okay, I know the best way to learn how to do something is to jump in so I have decided I would like to make a program (command line) to get files from a website that will be then used later on by another program.
Program idea - quick steps to do *** file-fetcher (within zip file) get internet location of files (ex: http://www.get_file.get/file_??.zip get name of files check date of file download file unzip file delete zip file after saving the txt file *** Here are the things I need it to do: * if its ran just with its name file-fetcher.py then it should ask for location of file(s) * it should also ask for a list of files to download seperated by a corma "," or by a file with a line by line list of files to download * it should be able to download files that are zip or other format such as txt, * if its ran with file-fetcher.py -L=url -F=file.zip, file.txt * if its a zip file it need to extract the file(s) from it * it then need to put the downloaded, extracted files into a directory * it then needs to delete the zip file * it needs to check for the date before downloading the whole file, maybe download the first few bytes to check time stamp Okay with the above said, how should I start to do psceduo code? Would each of the above be a function within the program? Any advise on class that exist that can make this process easier? How would someone run a command that is normally done at the command line like espeak within python program? Also how would I hide the visual output of a command like espeak, it throws alot of erros but it works, it happens to others using it too. By the way I am using python 3.2 as this is what is on R-Pi Raspbain (latest version) Thank you greatly for your assistance in guidance.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor