+ elif comic == 'cyanide':
+ s = f.read()
+ f.close()
+ # title:
+ splt = string.split(s, ' First</a> | <a href="/comics/', 1)
+ if len(splt) < 2:
+ print "first comic?"
+ prev = False
+ else:
+ splt = string.split(splt[1], '/">< ', 1)
+ prev = splt[0];
+ splt = string.split(s, 'Previous</a> | <a href="/comics/', 1)
+ if len(splt) < 2:
+ print "last comic?"
+ next = False
+ else:
+ splt = string.split(splt[1], '/">Next ></a>', 1)
+ if len(splt[0]) > 10:
+ next = False
+ else:
+ next = splt[0]
+
+ splt = string.split(s, '</tr><tr><td colspan=2>', 1)
+ if len(splt) < 2:
+ print "no comic?"
+ return False
+ splt = string.split(splt[1], ' <b>by <a href="', 1)
+ title = splt[0];
+ splt = string.split(splt[1], 'a daily webcomic" src="http://www.explosm', 1)
+ if len(splt) < 2:
+ print "a video? Try skipping"
+ return ['skip',next,prev]
+
+ splt = string.split(splt[1], '"></div><br />', 1)
+ url = "http://www.explosm" + splt[0]
+ splt2 = string.rsplit(url, "/", 1)
+ filename = splt2[1]
+ irow = [comic,number,link,url,filename,title,next,prev]
+ return irow
+