FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » Hatrack RSS feed

   
Author Topic: Hatrack RSS feed
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
Greetings all!

I have created a basic "news feed" for this side of Hatrack River. It shows the titles (with links) of the top 25 threads on the forum. Here's the URL:

http://fugu13.com/hatrackrdf.py

Now, if you go there in a normal browser its not going to look like much. Its not supposed to. RSS stands for many things, among them "Rich Site Summary" and "Really Simple Syndication". Its a way for a site that regularly posts news or other periodic content to make that content available in a condensed, content based format which is easily parsed and passed around by computers, and provides for humans a handy way of scanning for interesting information among the sea of content available. For some more in depth information, check here: http://www.xml.com/pub/a/2002/12/18/dive-into-xml.html

So how would be a good way to view this RSS feed?

I suggest NetNewsWire Lite for Mac OS X (see the bottom of this page: http://ranchero.com/netnewswire/ ) and RssReader for Windows ( http://download.com.com/3000-2164-10237043.html?tag=lst-0-2 . It does require the .Net framework, which can be found on the windowsupdate.microsoft.com site ).

After downloading either news reader, just use its subscribe function to subscribe to the aforementioned URL

You may find it worthwhile to be able to keep an eye for a topic you like coming up without having to bring up hatrack entirely. Plus, the rss feed is cached, so while it will only get around a couple of minutes behind, no matter how many people view it during each refresh cycle hatrack's main page will only get hit once.

Try it out. See if it makes maintaining your hatcrack dosage easier. RSS is changing the way people gather information, and its growing at breakneck speed.

Enjoy [Smile]

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Zevlag
Member
Member # 1405

 - posted      Profile for Zevlag           Edit/Delete Post 
Fugu, it's broken!

http://www.feedvalidator.org/check?url=http://fugu13.com/hatrackrdf.py

Posts: 2102 | Registered: Dec 2000  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
Oh, that's just an encoding problem, let me see if I can at least mostly fix that.
Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Rhaegar The Fool
Member
Member # 5811

 - posted      Profile for Rhaegar The Fool   Email Rhaegar The Fool         Edit/Delete Post 
*Looks in awe at genius*

Uh........... computers are pretty........uh.......mine smells funny....

Posts: 1900 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
Yeah, all fixed now. In well formed XML you can't use
code:
&

you have to use
code:
&

To solve it, I just used a different separator altogether (its for a dummy variable to cause rss readers to not get the items out of order).
Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Rhaegar The Fool
Member
Member # 5811

 - posted      Profile for Rhaegar The Fool   Email Rhaegar The Fool         Edit/Delete Post 
:a smilie with a guys mouth hanging open who is drooling on a desk:
Posts: 1900 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
This program isn't all that impressive. You could probably code it after a couple months of learning programming.
Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Rhaegar The Fool
Member
Member # 5811

 - posted      Profile for Rhaegar The Fool   Email Rhaegar The Fool         Edit/Delete Post 
Exacty, key word: Learning
Posts: 1900 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
IanO
Member
Member # 186

 - posted      Profile for IanO   Email IanO         Edit/Delete Post 
Just out of curiosity, did you have to write code to parse the HTML of the BFFAC topics page to turn it into XML?

Ian

Posts: 1346 | Registered: Jun 1999  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
I used a sax parser and had it first check if a tag was a link tag, then check if it had a substring which appears in links to topics. If it did, I stored the url and set a flag, which alerted the data handler to slurp the next data, and then I unflagged at the close of the first tag.

I'm aided because no html brackets are allowed in thread titles. edit: of course, html brackets are not allowed period that aren't part of a tag in any well formed html document. No tags are allowed in thread titles, either.

That was easy, really, it was much more complicated to take care of multipage threads (ended up doing it with a couple of re's), though mainly because I wanted it to be at least a bit "smart" about it.

[ December 15, 2003, 06:04 PM: Message edited by: fugu13 ]

Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
Mucus
Member
Member # 9735

 - posted      Profile for Mucus           Edit/Delete Post 
*bump*

Any idea if this feed is supposed to still be working these days?

Posts: 7593 | Registered: Sep 2006  |  IP: Logged | Report this post to a Moderator
breyerchic04
Member
Member # 6423

 - posted      Profile for breyerchic04   Email breyerchic04         Edit/Delete Post 
I doubt it since he doesn't use that website much if at all anymore.
But I'm asking.


When I saw the thread I hoped Rhaegar was back. But I knew he was on an airplane, so my hope went away.

Posts: 5362 | Registered: Apr 2004  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2