Questions tagged [simplepie]

SimplePie is a PHP library intended to make it ridiculously easy for people to manage RSS and Atom feeds.

SimplePie is:

  • A code library, written in PHP, intended to make it ridiculously easy for people to manage RSS and Atom feeds.

  • An easy to use API that handles all of the dirty work when it comes to fetching, caching, parsing, normalizing data structures between RSS and Atom formats, handling character encoding translation, and sanitizing the resulting data.

  • Free (i.e. no cost) open-source software, with a license more liberal than the GPL (BSD-licensed), that was built and improved over the course of years by people who have a passion for good software that makes people's lives easier.

  • Well documented with a complete API reference, tutorials and screencasts for popularly requested uses, and details about the inner workings of the library.

  • Always looking for more people to contribute to the project in terms of code, patches, support, and evangelism.

  • A solution where we've worked very hard to keep the bar as low as possible for people who want to use it, but at the same time you MUST have a fundamental grasp of the PHP language. If you don't know PHP, and are interested in getting a handle on the basics, we recommend PHP 101: PHP For the Absolute Beginner (begin with parts 1-3, then move onto parts 4-7 making sure you actually understand them).

SimplePie is not:

  • A magical solution that will just "do it for you."

  • A copy-paste, "no code required" solution.

  • A full-blown feed aggregator like Google Reader, NewsGator Online, Bloglines, and the like.

If you don't know PHP, or are not willing to learn PHP, SimplePie is not the right solution for you.

However, SimplePie integrates well with a variety of blogging systems, wikis, forums, and code frameworks. Many of these third-party software packages are more end-user focused, and require less (if any) actual programming. Check out our SimplePie Plugins and Integration page to see if SimplePie integrates with software you already use, in a way that doesn't require much programming (if at all).

296 questions
0
votes
1 answer

Reorder items in an RSS feed

I have 2 websites, and I wish to show some posts from one on the other using an RSS feed. Trouble is, the default seems to be order by publish date, where as I need them ordered by title. I'm using Wordpress, which uses SimplePie (which I believe is…
David Gard
  • 11,225
  • 36
  • 115
  • 227
0
votes
1 answer

Upgrading to SimplePie 1.3, documentation leaves something to be desired, plus busted my news aggregator

I clicked the big download button and uploaded /library and autoloader.php but that was insufficient in switching over to the new codebase. I had previously renamed my old installation, simplepie.old from simplepie.inc but with no simplepie.inc…
Muskie
  • 577
  • 3
  • 21
0
votes
1 answer

Simplepie won't display date in Wordpress

I'm using SimplePie to display an RSS feed in Wordpress. For some reason the get_date function is returning nothing? Here's my code below. Could it be an issue with my feed?

news & media

0
votes
2 answers

SimplePie does not show Google RSS feeds

I'm using SimplePie to fetch RSS feeds. All other RSS feeds are displaying except Google RSS. I checked by echo $feed->error(), the error shows This XML document is invalid, likely due to invalid characters. XML error: EntityRef: expecting ';' at…
lnj2011
  • 21
  • 1
  • 4
0
votes
2 answers

Can't get SimplePie function to extend with class

I've been trying to extend SimplePie to sort a feed in reverse order. The second feed I've distinguished with the variable $events is a feed of events I'd like to display with "oldest" date first, since that event is closest to taking place. I've…
0
votes
1 answer

Simplepie: Sort RSS posts by date last updated

I'm trying to sort the posts of an rss feed by the date they were last updated, using simplepie to parse the feed. I was thinking I could use the "get item tags method", like so: $feed_object->get_item_tags("http://www.w3.org/2005/Atom",…
pheven
  • 949
  • 2
  • 8
  • 11
0
votes
1 answer

div automatically added in $item->get_description(); using simplepie

I am getting a div that is appearing in the output from calling a RSS feed. It is ignoring my attempts to wrap it in a paragraph tag and pushes the data out to the div. foreach ($feed->get_items(0 , 3) as $item): $feedDescription =…
Carey Estes
  • 1,534
  • 2
  • 31
  • 59
0
votes
2 answers

parse error, expecting `T_FUNCTION' when including SimplePie RSS Script

I've narrowed down my issue to the line when I include the SimplePie RSS script (simplepie.inc). I'm not sure why exactly it's throwing this error, but I thought StackOverflow might have more insight than I have been able to find via Google thus…
CrowderSoup
  • 164
  • 5
  • 16
0
votes
1 answer

How to access gmail inbox feed using php

I have google app account for my domain. Google app documentation says To use Gmail with Atom, you must already have an aggregator. I use php simplepie to parse rss and atom feeds on my app. Google documentation says url is…
Josh Randall
  • 1,284
  • 4
  • 18
  • 31
0
votes
2 answers

What is the format of a Google blogger post GUID? PHP / CodeIgniter / SimplePie

I'm trying to create pages on my site which display RSS google blogger posts. I'm using PHP, CodeIgniter, and SimplePie to parse the Google feeds. Issue 1: I want to be able to create a link using the guid on one page and then display the invidual…
Adamantus
  • 813
  • 1
  • 12
  • 30
0
votes
1 answer

How to add a "load more" RSS feeds function with Simplepie

I am trying to add a "load more" RSS feed button functionality to my site. I am currently pulling in blog posts from my WP blog site into my main site with Simplepie. It works great and I have set the $max_items to 3 but I can't seem to find any…
0
votes
2 answers

Codeigniter. RSS parser to add data to db

I'm creating a script to get posts from an rss feed and place them into my database. I'll do this with 3-5 different feeds and then I'll print them out in date order regardless of the feed they come from. Some of this works fine, like I can get the…
Adamantus
  • 813
  • 1
  • 12
  • 30
-1
votes
1 answer

Title of blog returned instead of title of post

I'm trying to parse the RSS feed from a blogger blog, however when using the get_title() method it returns the title of the blog and not the title of the post. I don't know if it is a problem with the blog as I didn't create it. If anyone wants to…
Daniel Pilch
  • 2,097
  • 5
  • 24
  • 30
-1
votes
1 answer

Displaying multiple feeds in different columns on the same page using simplepie

I am using simplepie to parse multiple rss feeds just fine and am able to put one on the html page. However I would like to add another or maybe two more to the html page. It would be displayed in a different column or box and pull from different…
-1
votes
1 answer

Using Light box with SimplePie

Im working on a project that uses SimplePie to to pull in a number of news feeds which is working great, but I would like the SP links to open the page on site in a LightBox, how can I do this? The code that Im using to generate the SP links is as…
1 2 3
19
20