Downloading most recently modified files

Shawn Milochik Shawn at Milochik.com
Sun May 10 17:52:42 EDT 2009


On Sun, May 10, 2009 at 1:04 PM, AllenLars <allenreas at gmail.com> wrote:
>
> Thanks Shawn.  I went through the ftplib info and I was able to generate a
> list.  I am needing to figure out parsing the list.
>
> AllenLars


Well, start by separating out the date and the file name. You'll want
the date for sorting, and the file name for when you decide to
download it. If you want help with regular expressions, let me know.
If so, post a sample of the code you have so far for parsing, sample
input (the raw listing), and sample output showing exactly how you
want it to look. As long as you write some code (even if it's not
working the way you want), I don't mind helping you fix it up.



More information about the Python-list mailing list