Saturday, November 3, 2007


I wrote a small program in Python for downloading files. (It is basically an interface for urllib, which does the real work). You can also use it from the command line with wget-like syntax.

It has some convenient features. If you have copied a url in the clipboard, it is automatically placed in the field, saving you a step. In the "Add..." dialog, you can specify a sequence of urls with the syntax "[0-4].zip", which expands into "", "", and so on. The most useful feature is downloading links from an html page:

Here's the code. You'll need a recent version Python and the wxPython GUI toolkit.

1 comment:

Pater said...

Traceback (most recent call last):
File "./", line 143, in <module>
main = PygetFrame(None, -1, "")
File "./", line 31, in __init__
File "./", line 65, in __bind_events
mydocs = os.path.join(os.environ['USERPROFILE'], 'My Documents')
File "/usr/lib/python2.6/", line 22, in __getitem__
raise KeyError(key)