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

Unable to retrieve rss feeds

I'm trying to retrieve RSS feeds data from the urls with the below php coding, it returns me the required data like item title,item description, item date etc. But when i try to retrieve the rss feeds data for the below URLS with the same php coding…
0
votes
1 answer

rss flux filter simplepie

I want to make a filter for my rss news using simplepie. So I have this code: $feed = new SimplePie(); $feed->set_feed_url(http://rss); $feed->init(); $feed->set_cache_duration…
0
votes
1 answer

Can you display RSS feed with SimplePie on the blog it was pulled from?

I want to fetch an RSS feed that my Wordpress site creates (let's call it site1.com/feed) using Simplepie, and I want to display that feed on the homepage of the same Wordpress site (site1.com). But I can't get the feed to display at all. I've…
0
votes
1 answer

Renew WordPress Feed Cache in the Background

I'm looking for a way to refresh feed caches in the background. To demonstrate the issue I'm facing with, the below code would help. It renews the cache in every 30 seconds when the page is accessed and loaded. Since it has lots of urls to fetch at…
Teno
  • 2,582
  • 4
  • 35
  • 57
0
votes
1 answer

SimplePie Rss merge to rss output help :[

http://pastebin.com/3wAphNpT http://cal5not.dyndns.tv:8080/DEV/transmission/test4.php Linked above is my simplepie script, created for the purpose of combining rss feeds and then exportation of the contents as rss. unfortunately, I can't seem to…
McNugit
  • 1
  • 1
0
votes
1 answer

Is it possible to pull information out a link from an article form for example the verge

I am trying to make something where you put in a link from an article and it puts out the article so the title, description , ... Is that possible, i think there is a way because some websites do it. And i think it's only compatible with websites…
Simon Vermeir
  • 41
  • 1
  • 1
  • 6
0
votes
1 answer

Most important items from a feed to save in a DB

I'm building a feed aggregator. I have a lot of blog addresses and I want to save all the posts in a database. I'm using Simplepie to get feeds and then with php I'm inserting them into a database. Simplepie's API is very large, and I don't know…
raygo
  • 1,348
  • 5
  • 18
  • 40
0
votes
1 answer

Linkifying tweets using simplepie

I am trying to make the links contained in certain tweets work on my twitter widget, for instance when I tweet an image and twitter turns it into a short link. Here is the code... Thank you in advance for your help! if ( !function_exists(…
Adam
  • 11
  • 2
0
votes
2 answers

Display full article using SimplePie

I used SimplePie to display RSS feed from a basketball website. The article titles show up but I want the entire article to display. I tried changing echo $item->get_description() to echo $item->get_content() it still only shows the little exert. …
denikov
  • 877
  • 2
  • 17
  • 35
0
votes
1 answer

External RSS images are very blurry

I have a site and I'm using Simple Pie to bring in external rss feeds. I'm displaying images, but they are showing up very blurry. When I click through to the story, they look fine on the original site. Why are they showing up blurry on my…
jordan
  • 9,570
  • 9
  • 43
  • 78
0
votes
1 answer

SimplePie 1.3 Character Encoding Issue

I'm attempting to use SimplePie to parse RSS feeds for a client (client is an author on Washington Post). After reading through the documentation and using the example code as a reference, I was able to get the feeds parsed into the site, but now…
theaccordance
  • 889
  • 5
  • 13
0
votes
1 answer

using simplepie and codeigniter to list set icons next to specific feed types

I have a small issue which I'm hoping someone can help me resolve. Copied below is a piece of code which goes away to my database model and returns an array with a URL and a feed type. The user enters whether they have used a twitter name, blogger…
Chris Headleand
  • 6,003
  • 16
  • 51
  • 69
0
votes
1 answer

SimplePie: Fatal error: Call to a member function set_cache_location() on a non-object

I'm trying to configure the SimplePie RSS parser to cache feeds into a mySQL database, but I keep getting this error messages when I try to load a SimplePie page: Fatal error: Call to a member function set_cache_location() on a non-object Warning:…
Richard
  • 209
  • 2
  • 10
0
votes
1 answer

Simplepie not recognising wordpress RSS

$feed->set_feed_url(array('http://chrisheadleand.com', 'http://glaciem-world.com/feed/')); $feed->set_autodiscovery_level(SIMPLEPIE_LOCATOR_ALL); Is there any reason in simplepie why these domains wont parse into a HTML page? The only RSS I seam to…
Chris Headleand
  • 6,003
  • 16
  • 51
  • 69
0
votes
1 answer

SimplePie won't display latest posts from Facebook Atom feed

First question posted so sorry in advance if this has already been covered and I just couldn't find the answer. I'm using SimplePie 1.2.1 to display an Atom feed of a client's Facebook wall on their corporate web page. It seems to work pretty well…
be OH be
  • 33
  • 4