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

Simplepie set_feed_url feed

and thanks in advance for your help. I'm using Simplepie to try to bring this feed: http://www.p2rx.org/webservices/rssNews.cfm?Type=Tribal&getall=true into this page: http://www.tribalp2.org/events/news.php As you can see, it isn't working.…
MaryS
  • 1
  • 2
0
votes
1 answer

SimplePie RSS - get_language in NULL

Hi i use SimplePie in this way: $feed = new SimplePie(); $feed->set_feed_url( array("feed.xml", "feed2.xml") ); $feed->enable_cache(false); $feed->init(); $feed->handle_content_type(); var_dump($feed->get_language()); foreach ($feed->get_items()…
Ste
  • 1,497
  • 8
  • 33
  • 63
0
votes
1 answer

Simple Pie 1.3 Keep Original pubDate?

I'm using Simple Pie 1.3 for a simple news stream. Sometimes websites, like ESPN, will update stories constantly. This changes the pubDate and pushes them to the top of my feed. Is there anyway to check if the story link is already present in the…
Danny I.
  • 57
  • 5
0
votes
1 answer

Get element in the channel of the feed with SimplePie in Wordpress?

How should I use get_channel_tags() or what function should I use of SimplePie to get totalResults of YouTube rss playlist or other element/attribute in the channel/header section of the feed? Example playlist:…
PoseLab
  • 1,841
  • 1
  • 16
  • 22
0
votes
1 answer

php/html automatically creating new line between rss posts?

My goal is to create a dynamic list of links next to each other (not on top of each other). So far I have the links outputting correctly using Simplepie and an Atom datasource but for some reason my output has a linebreak between each new item in…
AAA
  • 2,388
  • 9
  • 32
  • 47
0
votes
1 answer

CMS to update just one section of an existing site

say I have a static site that contains such page: http://example.com/events.php I'd like to use a CMS in order to update only that page in a blog-fashion, i.e. multiple articles, pagination and single pages for single articles. I was thinking about…
Neko
  • 1,099
  • 2
  • 7
  • 7
0
votes
1 answer

WordPress RSS error: "The file simplepie.php could not be found."

I'm trying to include an RSS feed in my blog using fetchfeed() and loop through the items, in sidebar.php. Instead of the feed, I get this text "The file simplepie.php could not be found." I searched for a while and could only find references to…
sinrise
  • 391
  • 3
  • 21
0
votes
1 answer

Display video with simplepie through wordpress?

I am showing a wordpress feed through this client's site, http://www.redvaultproductions.com/Latest.php, but videos do not show within the posts. Notice the second (when I wrote this) post "Mount Bachelor, Oregon," it has a video on the wordpress -…
mkob
  • 55
  • 1
  • 7
0
votes
1 answer

How is this RSS link encoded?

I'm working with Simplepie to create a simple RSS aggregator. I've come across this feed (http://feeds.washingtonpost.com/rss/linksets/opinions/george-will) that I want to add into my aggregator. For the life of me I can't figure out how the links…
flicker
  • 593
  • 2
  • 6
  • 12
0
votes
0 answers

SimplePie parsing huge XML file causes Memory Leak

I'm using a very cool application called SimplePie, the problem with that is when I'm parsing this very huge XML file http://feeds.feedburner.com/HubSpot, which is about 10Mb in size, when it starts to parse, it suddenly breaks everything because it…
PinoyStackOverflower
  • 5,214
  • 18
  • 63
  • 126
0
votes
1 answer

Simple Pie "set_item_limit" doesn't

I'm struggling to get set_item_limit to work. The feed comes in fine, but just renders every post. Here's the code I'm using: // Make sure SimplePie is included. You may need to change this to match the location of autoloader.php // For…
0
votes
1 answer

Get feed level category (RSS)

I'm using SimplePie. Is there a way to get the category of the feed? Right now I can only get the category at the item level of the feed. I know the feed normally has a category so is there anyway of retrieving this instead of the item level…
Aaron Fisher
  • 645
  • 3
  • 8
  • 23
0
votes
3 answers

Spanish characters not saving in database correctly

I'm going through some feeds of spanish blogs and saving them in a database. For example, the word: Diseño! , I can see it correctly in the script that gets the feeds but when it saves in the database it saves like Diseñó! . I have my database set…
raygo
  • 1,348
  • 5
  • 18
  • 40
0
votes
1 answer

load all items from one Atom RSS feed

I'm using SimplePie and it gives me a headache. First, let me explain what I'm trying to do. My friend, for which I'm making a website, already has blog with not so few posts and I want to load all items from there, parse them and display them if…
Kristjan O.
  • 814
  • 1
  • 9
  • 33
0
votes
1 answer

RSS Feed getting cut off

I'm trying to pull in an RSS feed into my PHP code. When I view the feed with Google Reader, I see several hundred items in the feed. However, when I pull it into my code, I'm only seeing 10. What is the reason for the difference and how can I…
ndisdabest
  • 319
  • 10
  • 19