RSS parser library |
[eluser]Unknown[/eluser]
[h2]Introduction[/h2] Simple lightweight library to parse RSS fields with caching [h2]Instructions[/h2] Just put attached file in your system/application/libraries folder and load this library into your application as usual. File source below [h2]Example[/h2] In your controller: Code: $this->load->library('Rss'); In your view Code: <?php if(isset($news) AND count($news) > 0):?> Also you can take a look at SimpleXMLElement PHP doc
[eluser]Addow[/eluser]
Hi larikov, Thanks for this excellent lightweight RSS library. I added an extra method to reset the url array and/or reset the settings when I am using the library in a single CI method or function. I know you can add multiple url's at once, but I use the RSS library to parse sport rankings, provided in RSS (instead of XML) format.
[eluser]Medikal[/eluser]
Hey man, love the simplistic lightweight libraries always! I was just curious, besides lightweight and currently being maintained, what are the advantages/disadvantages of this against a library like simplePie?
[eluser]Unknown[/eluser]
Hello! I was looking for an easy, straightforward way of adding a rss feed reader to my application - and I think this is what I need. However, I don't seem to get it to work, I get this: Quote:Message: Invalid argument supplied for foreach() My controller: Code: $this->load->library('Rss'); The feed I'm trying to retrieve is http://www.dn.se/m/rss/senaste-nytt. I run PHP Version 5.3.2-1ubuntu4.7, and my CodeIgniter version is 1.7.2. Any ideas, anyone? regards, Anders
[eluser]Unknown[/eluser]
Please help. I`m using: $this->load->library('Rss'); $this->rss->set_items_limit(2); $this->rss->set_cache_life(10); $this->rss->set_debug(true); $this->rss->set_url('...'); $news = $this->rss->parse(); I want to echo $news but I can`t understand the structure of it. This is the raw RSS and the parse function returns an array for each item in channel. So why can t I echo $news['2']?? or use foreach ($news as $item) echo $item['description']?? Code: Raw RSS data:
[eluser]Ninjabear[/eluser]
The file seems to be non existent or corrupted now, where can I get a copy from please? I did find another RSSParser class but it didn't seem to support multiple feeds like this one.
[eluser]Unknown[/eluser]
[quote author="Ninjabear" date="1334222040"]The file seems to be non existent or corrupted now, where can I get a copy from please? I did find another RSSParser class but it didn't seem to support multiple feeds like this one.[/quote] same problem here..
[eluser]Unknown[/eluser]
hello every one hope u all are fine. i am not able to download rss.zip can any one help?
[eluser]umefarooq[/eluser]
hi guys you can find this library here [url href="https://github.com/EllisLab/CodeIgniter/wiki/_pages"] CI wiki library download [/url] |
Welcome Guest, Not a member yet? Register Sign In |