Homestar Runner Wiki Forum

A companion to the Homestar Runner Wiki
It is currently Tue Aug 11, 2020 10:45 pm

All times are UTC




Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: RSS/XML
PostPosted: Fri Aug 20, 2004 1:47 am 
Offline
User avatar

Joined: Wed Jul 21, 2004 12:40 am
Posts: 612
Location: Trying to come back.
It would be really cool if the forum was in RSS/XML.
But that may be to hard to do.... :cheatgrin:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 20, 2004 2:25 am 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
Your wish is.. well, it's a good way for me to kill some time. Turns out this was really simple, since there's just such a mod in the phpBB verified mods database. The syndication URL is:

http://forum.hrwiki.org/rss.php

There's some extras, too. You can specify an argument for how many posts you want it to display:

Show 15 posts (c stands for count):
http://forum.hrwiki.org/rss.php?c=15

And you can specify which forum you want posts from (skip this and it'll show all posts from all forums):

Show only posts from the Toons forum (f stands for forum):
http://forum.hrwiki.org/rss.php?f=4

By the way, the number that goes with each forum is the same number that's at the end of the URL when you view that forum normally (e.g. Emails = 14, Off-subject = 12, etc.).

Oh, and you can combine them:

http://forum.hrwiki.org/rss.php?c=15&f=4

There's also a 't' option that's supposed to show only topics (instead of full posts), but, er, I can't get it to work.

Enjoy.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 20, 2004 2:28 am 
Offline
User avatar

Joined: Wed Jul 21, 2004 12:40 am
Posts: 612
Location: Trying to come back.
Cool! Now you just need a link on the main page.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 20, 2004 2:29 am 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
fahooglewitz1077 wrote:
Cool! Now you just need a link on the main page.


All in good time. Eventually there'll be an RSS feed for the Wiki as well.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 20, 2004 2:31 am 
Offline
User avatar

Joined: Wed Jul 21, 2004 12:40 am
Posts: 612
Location: Trying to come back.
You guys are awesome.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 20, 2004 4:29 am 
Offline
User avatar

Joined: Sun May 09, 2004 5:21 am
Posts: 2140
Location: My Backyard
fahooglewitz1077 wrote:
You guys are awesome.


I don't know about the other mods... but I think bored is probably a better term. :) (no offense jones, I do know how much time you all put in here, and certainly appreciate it... a lot)

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 8:50 pm 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
How's the status?

Also, if not all, you could just RSS the H*R updates page at first, which I check the most often (if it's easier to just set it up for one page, that is).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 9:15 pm 
Offline
User avatar

Joined: Sun May 09, 2004 3:23 am
Posts: 2562
Location: I seem to have...pooped......in my pants...
Don't slap me with a herring for being ignorant...but what is RSS?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 9:17 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
These aren't the droids you're looking for..

Please look here.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 9:18 pm 
Offline
User avatar

Joined: Sat Aug 14, 2004 9:03 pm
Posts: 1449
Location: Totalslava.
Really Simple Syntax (not sure of the last one)
It's a news delivering service that uses readers to receive it. It's like a news article, but online.

_________________
Evidence of the ol' glassies! Nothing up our sleeves, no magic little Alex! A job for two who are now of job age! The police!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 9:19 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
thefreakyblueman wrote:
Really Simple Syntax (not sure of the last one)
It's a news delivering service that uses readers to receive it. It's like a news article, but online.


If you want a better (and more accurate) explanation, please visit my link above.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 1:24 pm 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
InterruptorJones wrote:
Please look here.


Nice. Will there also be one for the H*R Updates page?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 2:18 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
Justas wrote:
Nice. Will there also be one for the H*R Updates page?


No, because we'd have to build it by hand every time there was an update. The Wiki won't generate something like that automagically (though it would be an interesting project.. hmmm..).

If you want a feed of all of the updates on H*R.com, there are two guerilla feeds out there that I've found:

http://interglacial.com/rss/homestar.html
http://www.livejournal.com/~homestar_rss/

For the latter, click on "syndication information" to get the URI for your aggregator. Neither of them seem perfect.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 3:45 pm 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
InterruptorJones wrote:
(though it would be an interesting project.. hmmm..)

It looks quite doable, although I have very little experience with PHP and such.

The way I see it, you'd just have to make a script that would convert http://www.hrwiki.org/index.php/Templat ... action=raw into something like this (made that manually, but it seems to work in Opera's RSS reader).

I'm looking into it myself, but if it's easy to do and not very time-consuming, some of you more experienced members might help me out.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 4:04 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
Whoa.. I didn't know there was an action=raw option.

But actually, from a screen-scraping perspective, it would be just as easy to use the regular HTML version of page the page to generate a feed as it would to use the "raw" version. The purist in me says the raw version would be better because it's so bare -- it has a very high signal-to-noise ratio. However, the HTML that MediaWiki generates is very clean and structured. Every day on the page is an <h2/> tag followed by an unordered list. And as a bonus, the page validates as XHTML Transitional. This is a cinch for a DOM parser. Another advantage over the "raw" version is that all of the links are already built, so it would take minimal parsing to just add "http://www.hrwiki.org" in front of each href, and any text formatting is already taken care of. So using the HTML version of the page you end up throwing a lot more away, but in the end it's easier because there are already libraries in place to parse the data.

I think I'm gonna have to play with this a bit later. You've played me like a fiddle.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 4:19 pm 
Offline
User avatar

Joined: Thu Jul 22, 2004 5:07 pm
Posts: 890
Location: Royse City, TX
I'm using Firefox, and usually I can see if there is an RSS feed in the lower right corner of the browser. For example, it appears on the Recent Changes page of the Wiki. However, that RSS icon doesn't appear on the forum. I see that you link to an RSS feed above, so what does it take to get Firefox to notice it? Does it need to be linked to in some tag?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 4:23 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
racerx_is_alive wrote:
I see that you link to an RSS feed above, so what does it take to get Firefox to notice it? Does it need to be linked to in some tag?


Yes, it needs to be in a <link rel="alternate"/> tag, and that would require editing the template.

If you want to use the feed as a live bookmark in Firefox, just copy the feed URI (it'll end in .xml or .rss) and then in the Bookmarks Manager (Bookmarks > Manage Bookmarks...) and go to File > New Live Bookmark... and past the URI in the "Feed Location:" box.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 4:17 am 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
Justas, you were right: Using the action=raw output is a lot easier.

I made a lot of progress using a SAX parser (XML_HTMLSax3), since a DOM-based solution wasn't going to work, not without some serious over-my-head XPath mojo (since a section's content is not a child of the section heading; boo), but I rant into more problems with the SAX approach (I couldn't treat everything in a <li/> as one chunk, I had to deal with every part (e.g. data, <a>, data, </a>, data) as a separate chunk. What a nightmare. But it was fun while it lasted.

So next time 'round I'm just going to parse the action=raw output line by line and hope that whoever edited the page last didn't leave a mess. Had I started out this way I'd be asleep by now; but oh well, it was a learning experience.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 11:34 am 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
InterruptorJones wrote:
So next time 'round I'm just going to parse the action=raw output line by line and hope that whoever edited the page last didn't leave a mess. Had I started out this way I'd be asleep by now; but oh well, it was a learning experience.

Thumbs up!

Also, to prevent you from the dangers of malnutrition for yet another sleepless night, I've brought you cookies.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 2:49 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
Justas wrote:
Also, to prevent you from the dangers of malnutrition for yet another sleepless night, I've brought you cookies.


Awesome. I love crumbs.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 17, 2004 8:27 pm 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
How's the status?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 18, 2004 2:00 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
Er, busy.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 4:06 pm 
Offline
User avatar

Joined: Thu Jul 22, 2004 5:07 pm
Posts: 890
Location: Royse City, TX
It seems that a bit of HRWiki magic is happening, what with the emoticon keep your pants on and the temporary wiki failure. Would it be possible to add the <link rel="alternate"/> for the RSS feed while all these changes/upgrades are happening?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 4:24 pm 
Offline
Wiki Proprietor
User avatar

Joined: Sun May 09, 2004 12:21 am
Posts: 499
Location: 14.7 miles South of Stu's backyard
racerx_is_alive wrote:
Would it be possible to add the <link rel="alternate"/> for the RSS feed while all these changes/upgrades are happening?

Done.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 1:50 pm 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
[annoying kid on the backseat]

Any progress on the RSS front?

[/annoying kid on the backseat]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 2:49 pm 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
[irate parent in the front seat]

Don't make me turn this car around!

[/irate parent in the front seat]

Seriously, I've been busy, and tired, and, um, lazy.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 3:14 pm 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
InterruptorJones wrote:
Seriously, I've been busy, and tired, and, um, lazy.

Ah, yes. The three words with which I am unfortunately also well familiar. Nonetheless, good luck for yon future and may ye be blesseth with sufficient stamina to carry forth this undertaking till its end!

And some nachos, too.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 11, 2004 11:29 pm 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
...and then I made one myself:

http://justas.ggcmedia.com/hrw.php

It doesn't do link conversion or fully support all the wiki tags somebody might decide to put there, but I suppose the fact that it works at all is promising, considering my near non-existant PHP skills (most of which I picked up today, during the making of this).

I can also provide the source file, if anyone is interested in having a look.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 12, 2004 12:13 am 
Offline
User avatar

Joined: Mon May 10, 2004 6:05 am
Posts: 5636
Location: swirlee.org for great justice
Justas,

Great work! It's always nice when somebody else does what I was too lazy to get done myself. I wouldn't mind seeing your source.

A couple comments:

Firstly, it's really slow. I don't know if this is the script or your server's bandwidth or my connection, but it takes a long time to retrieve.

Secondly, I personally would have made each individual update (i.e. each bullet item rather than each day) as its own feed item, as it would make new updates more at-a-glance. But that's just me.

Lastly, concerning links, I found this bit of code that converts Wikipedia links into HTML links. It's in the form of a Wordpress plugin, but I think it would be really easy to adapt to any PHP script.

Again, great work.

_________________
StrongCanada wrote:
Jordan, you are THE SUCK at kissing! YAY! Just thought you should know! Rainbows! Sunshine!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 12, 2004 10:13 am 
Offline

Joined: Tue Oct 05, 2004 8:45 pm
Posts: 10
Location: Estonia
InterruptorJones wrote:
Firstly, it's really slow. I don't know if this is the script or your server's bandwidth or my connection, but it takes a long time to retrieve.

That was probably our server. At first, I also thought that all those loops and newbie code probably ate up the server's CPU speed, but the refreshing/loading time varied from 2 seconds to half a minute, so I'm assuming something was temporarily wrong over there. But the script could probably use some optimisation as well, so:

InterruptorJones wrote:
I wouldn't mind seeing your source.

Here you go: http://justas.ggcmedia.com/hrwc.txt

Looks rather clumsy, compared to that other converter you found there.
I added a lot of comments here, to make it more legible to the average human being. But anyway, you're free to improve upon this, implementing the links feature and/or more items per update, etc. As long as I get partial credit for any of my crap that survives the editions ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group