what are you using python language for?
Tim Chase
python.list at tim.thechases.com
Tue Jun 6 11:58:37 EDT 2006
> 4) Miscellaneous other stuff like grabbing all of the comic
> strips I like every day and putting them on a local web
> page so I can read them all in one place
I wonder how many other folks have done this too. It was my
first pet Python project, converting a Java rendition of the same
app into Python. Shorter, clearer, faster, better...
Mine uses my older Java config file (which, while tinkering with
Java's XML libraries, ended up being XML), supports
Referrer/Referer spoofing, searches pages for regexps so that I
can find image URLs that have been munged with random numbers
(like dilbert.com does). It then builds a local HTML file that
points at all the locally-saved images.
I wonder what other sorts of features folks have added in their
comic-snatchers...
I tried a multi-threaded version in Java, but had problems with
it saturating my dialup connection, and returning some sort of
errors (perhaps in violation of HTTP's suggestion that one only
have, IIRC, 2 connections to a server at a given time). I might
try it again with Python. I saw some function-call fly by
recently that looked like it took a function reference and an
array of parameter-arrays, and spawned a thread for each
function. I foolishly deleted that message, but it shouldn't be
too hard to scare up again. I think it involved importing
something from the future. A nice little status-GUI would be a
nice addition, but I'm too lazy to go that far, leaving it with
just a TUI. Might be a good way to learn Python GUI programming...
-tkc
More information about the Python-list
mailing list