Log in

No account? Create an account

Previous Entry | Next Entry

RSS from ezboard

I've been working on a project for the last while that has, as one aspect, an RSS aggregator to bring together news from a bunch of different related website - nothing earth-shaking there. Problem is one of the sources I want to aggregate is an ezboard forum. The fact that ezboard doesn't have RSS feeds, however, put a bit of a damper on that.

A bit of Google searching made it quite clear that I was not the first person to want to do this, and while I am all for not reinventing the wheel when possible pretty much all I could find were lots of "ZOMG!!1!! I needs RSS from ezboard. PLZ spoon feed me!" forum posts and very little of actual use. In reply to these there were a couple of links to a dead service at http://www.mikeshea.net with the requisite "is gone OHNOES!!1!" replies. Eventually I found a post where someone rather usefully posted a link to the source on Mike Shea's site and I gave it a try.

While there was some wonderful Perl-y goodness to the script, particularly it's ability to deal with a whole bunch of other bulletin board services, the RSS generated was, to put it mildly, badly formed - the worst part for my application was a lack of pubDate tags so the items wouldn't slot in chronologically with the other feeds in my aggregator. Running the script also added about 20 lines of warnings in the error log every time it was executed. The script was all at once overkill and not very useful to me. But not completely useless. I retained the caching and some of the ezboard-specific screen scraping when I rewrote it, so credit where credit is due.

My script is entirely single-purpose, unlike Mike Shea's script it only works with ezboard forums, that's the downside. The upside is what it returns
  1. is the right content type ('text/xml')
  2. includes a lastBuildDate
  3. includes a pubDate for each item
  4. includes sticky threads, yet still sorts the thread items in the correct descending order by date/time, and, of course
  5. runs without warnings or errors

How to use:

For the cache you'll need a subdirectory under the location of the script that is writable by your http server process.

The script expects three parameters:
  1. title - arbitrary text describing the feed. This is what is going to end up inside the <title> tag of the RSS feed. Don't forget to URL encode the string.
  2. url - the full URL to the forum you want to make a feed from, URL encoded, of course, and
  3. description - arbitrary text  describing the feed, this will end up inside the <description> tag.


Source code: ezrss.txt


( 3 comments — Leave a comment )
(Deleted comment)
Dec. 16th, 2007 03:51 am (UTC)
Will you be out on the 22nd? I don't normally do prints except on the spot, but if I can get them to you on the 22nd we can work something out.
Dec. 16th, 2007 05:50 am (UTC)
I am looking forward to being there on the 22nd (perhaps I can even convince my bashful little husband to come out too....).

I understand about your normally doing prints right on the spot, which is why I'm willing to pay a bit extra, or give you a little present if you prefer. (Let me know if you'd like a little Christmas gift or some extra cash for this favor).

How much are your prints? Because I would like to be able to have some duplicates so that I can give some to my dear friend who bought me my pretty gold dress.

Thank you so much for getting back to me!

Should I go to the website and check the numbers on the pics so you know the exact ones?
Jessi :)
(Deleted comment)
Dec. 16th, 2007 05:56 am (UTC)
Yes, please. Get me the numbers and send them to my regular e-mail: mbarrick@mbarrick.net

I'll reply with the pricing info.
( 3 comments — Leave a comment )


Michael / Atratus

Latest Month

November 2019


Page Summary

Powered by LiveJournal.com
Designed by yoksel