How can i convert RSS to HTML on webpage?

Atlas

Regular Member
Joined
Mar 31, 2008
Messages
214
Reaction score
75
Looking for a script that converts RSS to HTML that i can embed in a static php webpage. Its important that it is not a javascript based script, but true html output. Also not looking for a widget or remotely hosted.

I tried Feed2Html, which was shit. Anyone have experience with this?
 
Try simplepie ;)
That's easy to handle and it'll do what you want ;)
 
probably the best one on the market is:
Code:
http://www.geckotribe.com/rss/carp

he's pretty hardcore on adding more functionality to his scripts and gives really good examples on how to use it.
 
I've got CaRP. It works like a champ. No problems at all.
 
I attached a very easy to use parser, it's made specially for XSP but will work on all html pages (use .htaccess).
 

Attachments

After many hours of searching and testing, i have found the best solution yet!

This uses MagPIE as the foundation and is super simple to use once setup. The nice thing about this setup is that you dont have to use "templates" and you're not limited to one feed or any other restrictions. All you have to do is upload a folder and paste a piece of code anywhere on your page.

Heres how to get started and setup, Go to: http://woork.blogspot.com/2007/10/from-feed-rss-to-html.html

And click the "Download this tutorial" link

Then, just upload everything to your server and test it out with the "index.php" file. Once you're comfortable using it all you have to do is add the code below to any part of your webpage and you have your HTML feed (you can use this on any number of pages, just change the $url part for a new feed)!

PHP:
<? php
require_once('parser/rss_fetch.inc');
$url = 'http://feeds.feedburner.com/Woork';
$rss = fetch_rss( $url );
echo "Title: " . $rss->channel['title'];
echo "<ul>";
foreach ($rss->items as $item) {
echo "<li>". "<a href=\"". $item['link'] ."\">". $item['title'] ."</a></li>";
}
echo "</ul>";
?>

If you want to customize it more you can add other parts of the feed like the description part. Just add this code under "title" part:

PHP:
echo "<p>".$item['description'] ."</p><br>";

Im excited, i cant wait to start mashing together RSS feeds and displaying all that free content on my sites! If you have some local sites and want to display stuff for sale like cars, real estate, apartments etc. oodle.com is a good site to grab feeds from, they pull from a bunch of different sources and their RSS include images.
 
Last edited:
Back
Top