Briefly, there's a file called rando.xml published on homestarrunner.com which contains titles and links to all the toons on the site. This is used by the 'random play' feature on the site.
Unfortunately, it's not really a valid XML file, so I have to treat it as plain text and parse it line-by-line. Some categories are listed in date order, some are reversed, so I have to compensate for that.
For all I know they could change the data format tomorrow and the widget would stop working, but it seems okay for now.
I also have to track which toons have been seen, and which ones have been added since the widget was first loaded.
How about keeping the emails seperate from the toons? It would make things a bit easier. Also, I would ask if you have permission to make this too. Just so things don't get too out of hand, and possibly to get some star time on the HR homepage.
Sorry for sounding surprised, but since the Brothers Chaps only release new toons around once a week, it makes it a little hard to test with real data!
Especially since I just threw this together over the weekend.
By sonicrules1234 , # Aug 1, 2008 3:48:56 PM
By jerii , # Jul 8, 2007 9:57:43 AM
This means that it doesn't show up as a new Toon (since that URL has already been seen) and the link goes to the wrong place.
Once the Brother Chaps fix their file and update the URL, it will show as a new toon as usual.
By johnnysaucepn , # Apr 25, 2007 12:40:24 PM
Briefly, there's a file called rando.xml published on homestarrunner.com which contains titles and links to all the toons on the site. This is used by the 'random play' feature on the site.
Unfortunately, it's not really a valid XML file, so I have to treat it as plain text and parse it line-by-line. Some categories are listed in date order, some are reversed, so I have to compensate for that.
For all I know they could change the data format tomorrow and the widget would stop working, but it seems okay for now.
I also have to track which toons have been seen, and which ones have been added since the widget was first loaded.
By johnnysaucepn , # Apr 18, 2007 3:00:09 PM
By angryrobo , # Apr 6, 2007 9:37:31 PM
By johnnysaucepn , # Mar 12, 2007 6:58:58 PM
By jashwin , # Mar 7, 2007 7:35:25 PM
By rmccabe916 , # Mar 2, 2007 8:23:56 PM
Sorry for sounding surprised, but since the Brothers Chaps only release new toons around once a week, it makes it a little hard to test with real data!
Especially since I just threw this together over the weekend.
By johnnysaucepn , # Feb 27, 2007 10:23:01 AM