Version 1.3.1 - 2009-01-08
-- Handle userpic keywords with non-ASCII characters
-- Download and save userpic images
-- Handle unexpected empty item
+- Feature: Download and save userpic images
+- Feature: Resume download where it left off if interrupted
+- Bugfix: Handle userpic keywords with non-ASCII characters
+- Bugfix: Handle unexpected empty item
Version 1.2 - 2006-09-08
dumpelement(f, "event", event)
f.close()
+def writelast():
+ f = open("%s/.last" % Username, "w")
+ f.write("%s\n" % lastsync)
+ f.write("%s\n" % lastmaxid)
+ f.close()
+
def createxml(doc, name, map):
e = doc.createElement(name)
for k in map.keys():
pprint.pprint(x)
errors += 1
lastsync = item['time']
+ writelast()
# The following code doesn't work because the server rejects our repeated calls.
# http://www.livejournal.com/doc/server/ljp.csp.xml-rpc.getevents.html
lastmaxid = maxid
-f = open("%s/.last" % Username, "w")
-f.write("%s\n" % lastsync)
-f.write("%s\n" % lastmaxid)
-f.close()
+writelast()
if origlastsync:
print "%d new entries, %d new comments (since %s)" % (newentries, newcomments, origlastsync)