Web DesignDiscussion
RSS feeds?

41264Nov 19, 2004 4:55pm
Anyone know how to get an RSS feed to show up on a basic webpage (or preferably in a Post Nuke module)


Sponsor
d2sNov 22, 2004 11:20am
It depends of what you want to do with that RSS feed. There are many different ways to use it. One good way is to use some (PHP, Perl, Python, etc.) RSS parser that will modify it to visible HTML code.

Some links that tell little more about subject:
sitepoint.com/article/php-xml-parsing-rss-1-0 [sitepoint.com/article/php-xml-parsing-rss-1-0]
magpierss.sourceforge.net [magpierss.sourceforge.net]
rssgov.com/rssparsers.html [rssgov.com/rssparsers.html]

Use Google to find more information about RSS and parsers. There are several modules for PostNuke that can add RSS feed to pages using PostNuke but I think that it could be better to use something like MagpieRSS. (Ok, PostNuke is nice but there are too much websites using it and most of them look just same as everyone else...)

41264Nov 23, 2004 1:35am
Thanks for the info..

EyebeeJan 18, 2005 8:45am
I use Sage within Firefox, as it's a great RSS agregator, but I too, need to sit down and work out how to set up a few sites, so such agregators can find an RSS feed I set up, and showwhen the site's been updated.

axxsMar 17, 2005 8:06am
Python rocks ;) feedparser.org [feedparser.org]

Pretty easy to use mod_python if it's enabled on the server:

#!/usr/bin/python
from feedparser import parse
thefeed = parse('rss_file_or_url.rss')
print "content-type: text/html \n\n"
print """html head title etc The_opening_html_as_the_forum_code_strips_it"""

.. blah blah loop thru the data as per the examples in the above link.


TheCheat8988May 15, 2005 6:10pm
I made my own parser...

It just parses the news onto my site. Not supposed to be used as an aggregator.


RSS feeds?

You need to Sign-up for StumbleUpon to post to this forum