Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'See comic subscriptions in NetNewsWire 2.0' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
See comic subscriptions in NetNewsWire 2.0
Authored by: SimonDorfman.com on Dec 05, '04 01:39:51PM

Thanks for this script. It's very cool. One question:
I'm trying to get it to work with Calvin and Hobbes:
http://www.ucomics.com/calvinandhobbes/
and it looks like they're running old ones (since the comic is no longer being made). They are currently running 1993. How would I hack the script (or maybe add a new argument) to make it go back to 1993 and work with this comic?
Thanks very much for any help.

http://images.ucomics.com/comics/ch/1993/ch931205.gif



[ Reply to This | # ]
See comic subscriptions in NetNewsWire 2.0
Authored by: SimonDorfman.com on Dec 08, '05 05:16:50AM
Wouldn't cha know it. A year later, I find myself asking the same question. I took the time to hack up a version of the script just for 1994 Calvin & Hobbes:

#!/usr/bin/python
# Created by Scott Morrison
# For personal use only

import sys,time,string

arguments = string.splitfields(sys.argv[1],"|");
comicName=arguments[0];
comicDir = arguments[1];
comicImgStem= arguments[2];

print '<?xml version="1.0"?>'
print '<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">'
print 't<channel>'
print 'tt<title>%s</title>'%comicName
print 'tt<generator>comic.pl</generator>'
print 'tt<link>http://localhost</link>'
print 'tt<language>en-us</language>';
print 'ttt<item>';
print 'tttt<title>%s for %s</title>'%(comicName,time.strftime("%A, %B %d, %Y"))
print 'tttt<link>http://www.ucomics.com/%s/</link>'%comicDir;
print 'tttt<guid isPermaLink="false">http://www.ucomics.com/%s/</guid>'%comicDir;
print 'tttt<pubDate>%s</pubDate>' % time.strftime("%B %d, %Y")
print 'tttt<description><img src="http://images.ucomics.com/comics/%s/1994/%s94%s.gif" border="0" /></description>' %(comicImgStem,comicImgStem,time.strftime("%m%d"))
print 'ttt</item>';
print 't</channel>';
print '</rss>';
P.S.- I only changed this line:
print 'tttt' %(comicImgStem,comicImgStem,time.strftime("%m%d")) By hard coding in the 1994 and 94.

[ Reply to This | # ]