Parse RSS feed |
[eluser]Hitankar[/eluser]
Is there is a plugin or way to parse RSS fields and convert to something like an array, which I like to save it onto the database. Thanks.
[eluser]Flemming[/eluser]
SimplePIE worked for me! http://ellislab.com/forums/viewthread/133938/ http://simplepie.org/ let me know if you need example implementation code
[eluser]pistolPete[/eluser]
Use the forum search and have a look at the wiki: - http://codeigniter.com/wiki/RSSParser/ - http://codeigniter.com/wiki/RSSParser-PhilMod/ - http://ellislab.com/forums/viewreply/493333/
[eluser]Hitankar[/eluser]
[quote author="Flemming" date="1262709430"]SimplePIE worked for me! http://ellislab.com/forums/viewthread/133938/ http://simplepie.org/ let me know if you need example implementation code[/quote] That would be great if I can have an example implementation code. I will get to understand better. Thanks...
[eluser]Flemming[/eluser]
sorry for the delay - couldn't get to the PC due to snow! ok - here's some example code for you ... find the simplepie.php library file to your application > libraries folder (you may have to search the forums for it) and then ... controller: Code: function __construct() and view: Code: foreach($rss_items as $item) hope that gets you on your way? or you can look here: http://www.haughin.com/code/simplepie/ for the original example! sorry, should have pointed you to that earlier!
[eluser]Hitankar[/eluser]
Thanks a lot. Is there's a way I could save into database, and update the database whenever the feed is updated.
[eluser]Flemming[/eluser]
I suppose you could move this into the controller: Code: foreach($rss_items as $item)
[eluser]angeal99[/eluser]
can anybody give me example site that integrating simplepie with codeligniter??? please....
|
Welcome Guest, Not a member yet? Register Sign In |