Update: I changed the feed to default to partial length, only the first 1000 characters of the article body. To change it to get the full body, add another querystring parameter named full with value true, ie: http://www.textbox1.com/examples/newsgroupfeed.rsb?currentgroup=microsoft.public.dotnet.general&range=10&full=true.
Output any newsgroup as an RSS feed in a half dozen lines of code. Thats pretty impressive, really. How? With RSSBus and a little script that calls RSSBus NntpOps.
Here's an RSS feed of the latest 25 articles in the microsoft.public.dotnet.languages.csharp newsgroup: http://www.textbox1.com/examples/newsgroupfeed.rsb
You can get a different group or a different number of messages by overriding the server, currentgroup, and range in the querystring. For example, here's a feed of the last 10 articles in the microsoft.public.dotnet.general newsgroup:
http://www.textbox1.com/examples/newsgroupfeed.rsb?currentgroup=microsoft.public.dotnet.general&range=10.
Here's how I did it.
First, the starter script code (notice its only 6 lines of code not counting the comments):
To get a feed of the latest 25 articles in the microsoft.public.dotnet.languages.csharp newsgroup, just call this script like so:
http://rssbus-server/newsgroupfeed.rsb?server=msnews.microsoft.com¤tgroup=microsoft.public.dotnet.languages.csharp&range=25
You can eliminate the need for querystring arguments by defining defaults inside the script itself. We use an rsb:info xml element for this:
Also notice the 'treatas="feed"' inside the rsb:info statement. I could instantly turn this into a MS Simple List Extension feed by changing this to 'treatas="list"'.
Technorati : rss, rssbus