Questions tagged [simplepie]
SimplePie is a PHP library intended to make it ridiculously easy for people to manage RSS and Atom feeds.
297
questions
0
votes
0
answers
7
views
SimplePie v1.6 - URL works in Demo, but not in my (copied) code
Trying to track down problems in RSS feeds. When I run this particular URL in the SimplePie demo window (http://simplepie.org/demo/), it works fine.
But, in my own code, pulled from the demo/index.php ...
0
votes
0
answers
18
views
Simplepie make feeds show horz instead of vertical
Is their a way to make Simplepie display the feeds horz instead of vertical? I want to show images across the top of my pages from left to right Simplepie wants to show them vertically
1
vote
1
answer
168
views
Cannot get thumbnail in rss feed in laravel
I am using willvincent feed reader to parse rss feeds, But i cannot seem to get the thumbail of the images,
Here is my code
Route::get('feed', function(Request $request) {
$f = FeedsFacade::make('...
0
votes
1
answer
34
views
How to simplify these variables?
$feed1 = new SimplePie();
$feed2 = new SimplePie();
$feed3 = new SimplePie();
$feed4 = new SimplePie();
$feed1->enable_cache(false);
$feed2->enable_cache(false);
$feed3->enable_cache(false);
...
0
votes
0
answers
52
views
Slow down data retrieval to preserve memory and avoid browser crash (PHP & SimplePie)
I'd like to build a RSS data retrieval process with PHP, MySQL, SimplePie, and jQuery, however I encounter problems with a crashing browser, limited server memory and error 500 when trying to retrieve ...
0
votes
1
answer
350
views
How to use SimplePie laravel package to display rss feed?
I want to display news from the given rss feed url. But I am not getting anything in data section. Below is the code I tried from https://github.com/willvincent/feeds and replaced the url.
public ...
0
votes
1
answer
244
views
Use simplepie with composer
I am using PHP 7.3.5 and Composer version 1.8.5 and would like to use "simplepie/simplepie": "^1.5" to get data from an rss feed.
When running the below script I get the error: Fatal error: Uncaught ...
1
vote
0
answers
84
views
Simplepie not displaying RSS Feed
I am using simplepie-1.5 but it's not displaying any RSS feed. I am only getting white page.
Code:
<?php
require_once 'autoloader.php';
$url = 'http://rss.nytimes.com/services/xml/rss/nyt/...
2
votes
1
answer
682
views
How to get the url from <media:content> in a RSS feed using SimplePie
I'm trying to use SimplePie and PHP to grab the url value from the tag. An example of the RSS code is:
<item>
<title>Headline goes here</title>
<link>https://sampledomain....
1
vote
1
answer
674
views
Comma-separated list valid in Content-Type header?
An RSS feed provider recently started sending this in its response headers:
Content-type: application/rss+xml, text/xml; charset=UTF-8
To support this provider, I needed to change a line in a feed ...
2
votes
1
answer
1k
views
SimplePie Error - Curl Timeout on Wordpress
I'm getting the error WP HTTP Error: cURL error 28: Operation timed out after 1001 milliseconds with 0 bytes received using the fetch_feed() method in my Wordpress Plugin.
This is for trying to fetch ...
0
votes
1
answer
216
views
how to validate RSS feed URL in simplpie library
I want to validate RSS feed URL before its process for parsing. I am using willvincent/feeds library for this.
$feed = Feeds::make($rssurl);
$items = $feed->get_items();
I am parsing RSS feed ...
0
votes
0
answers
40
views
values not adding to db from simplepie
I am trying to fetch feeds using Simplepie, but when using some sources (like this and this) values are not inserting to the database.
Can someone help solve the issue?
$feedurls = array();
while ($...
0
votes
1
answer
74
views
Loading Simplepie feed url from database
I am using simplepie 1.5 and fetching multiple feed urls
$feed->set_feed_url(array('x','y','z'));
How can I load the feed URLs from my database table?
Attaching the code used.
$results = ...
1
vote
0
answers
820
views
RSS Feed not showing latest post
Backstory: I have a WordPress install where the core single post/archive type was utilized for a CPT by a previous developer. I was requested by the client to create a separate WordPress install for ...
1
vote
1
answer
85
views
conditional loop to fetch images in php simplepie rss
I am trying to make a news reader using SimplePie in PHP. Everything was working fine when i tried to fetch images from feeds. In my little understanding what i concluded is i have to fetch images in ...
1
vote
2
answers
236
views
PHP SimplePie Error: $item->get_enclosure() always return true
Am trying to build a news reader using php SimplePie Library. When i try to get image from feed using code
if ($enclosure = $item->get_enclosure()){
$imageLink = $enclosure->get_link();
...
2
votes
0
answers
156
views
PHP SimplePie throwing unserialize error on Feeds::make($feedUrl, 100)
When using SimplePie to get a list of the latest rss posts, the following code sometimes throws errors:
$rssPosts = Feeds::make($rssFeedUrl, 100);
PHP Notice: unserialize(): Error at offset 1177620 ...
0
votes
0
answers
178
views
WordPress Inquiry : Can't Parse custom tags in RSS item feed using SimplePie
I modified my default rss feed items to include elemnts from custom fields. It now looks like this.
<item>
<title>Post Title</title>
<link>http://example.com/</...
0
votes
1
answer
41
views
Simplepie plugin causing an internal server error?
My website host did some checking for me and indicated that Simplepie plugin is causing a memory problem. Can you say which files need to be removed in order to access my Sopacameraclub.com site ...
0
votes
1
answer
434
views
How to read wordpress password protected feed using SimplePie
I am trying to read wordpress feed which is password protected using simplepie .
No where i see this issue has been answered
I am testing url feed in simplepie demo page
Once we click on read ...
0
votes
1
answer
269
views
who know how to put down the title of pie in ionic 2
I want to put the label under the pie.who know please tell me.thank you! here the code.
this.pieChart = new Chart(this.pieCanvas.nativeElement, {
type: 'pie',
data: {
...
0
votes
0
answers
1k
views
How to disable core plugin "SimplePie" in WordPress 3.8.1
i've got a WordPress installation on another hoster and the hoster informs me, the site got hacked. (everything is up to date)
So i looked at the files and found a corrupted "gpzdecode.php" with an ...
1
vote
1
answer
908
views
SimplePie Not Parsing RSS Feed
I've been using SimplePie for about 4 yrs now w/Curl...and it's worked great up until 2-6-17.
For the last 12+ hrs I've been trying to narrow down why it won't parse any of craigslists list feeds. I'...
0
votes
1
answer
120
views
simplepie include a php file with feed list
I need a little help with simplepie and php.
I use this code to echo a multifeed:
<?php
echo SimplePieWP(array(
'http://feed1',
'http://feed2',
'http://feed3',
), array(
'items' =&...
0
votes
0
answers
34
views
simplepie - link with parameters - parameters are stripped?
So, I am trying to use SimplePie to parse the RSS feed at:
http://www.simplifyingthemarket.com/en/feed/?a=309993-7b86574c044e802f54eb1e51505b49f2
Note the a=... paremeter. This feed comes in with an ...
-1
votes
1
answer
73
views
what does exactlly simplepie set_timeout() work?
I want to know what does set_timeout (30) do?! I read document about this from simple pie docs
Allows you to override the maximum amount of time spent waiting for
the remote feed's server to ...
1
vote
1
answer
331
views
SimplePie on Azure not parsing https feeds
I'm using a compiled version of SimplePie 1.4.2 (the last tagged version on GitHub) to aggregate some rss/atom feeds (code below if needed).
It works well on a couple of linux-based web hosts, but ...
0
votes
1
answer
772
views
SimplePie and get_item_tags attribute
I'm using Simplepie to parse different RSS feeds, passing them to a Smarty template, and I need to return the attribute from each item line that in this example reads: NEWSX
<source url="http://...
1
vote
0
answers
64
views
How to parse specific URL?
I try to use a specific Atom url with SimplePie but it does not work:
http://cat.internetbrokerproject.be/ibpcatalog/Feed/CatalogAtomFeed.svc/DigestedCatalogItems?$filter=SecureGuid%20eq%20'D8053C8D-...
0
votes
2
answers
551
views
how to get source tag in RSS feed
Please, I have an RSS feed and need to get the source for every item. I'm using php and Samplepie.
for example the RSS feed is like that :
<?xml version='1.0' encoding='UTF-8'?>
<rss ...
1
vote
1
answer
191
views
Access a custom field from and RSS feed in WordPress
I am trying to access a custom field from an RSS feed in WordPress (using SimplePie), but I am not able to
// get HCBC feed
$media_rss = fetch_feed('feed.theplatform.com/f/IfSiAC/VfW_gmOIG_yI');
if(!...
0
votes
1
answer
154
views
WP Simple Pie custom fields between 2 sites
I have 2 websites. One of them I am using ACF to add custom fields to a custom post type "jobs", I have setup the custom field with the key "job_type" on the main site. Then I added this to the ...
2
votes
2
answers
2k
views
How to use SimplePie with Laravel
I am using Laravel 5.2. I need to get RSS feeds using SimplePie, so I install the library through composer.json and now my vendor folder contains simplepie but when i run the following code this error ...
0
votes
1
answer
159
views
simplePie: substring description without removing the images for every news
hello im trying to limit the text of every single news , my code works fine like this
<p> {{ substr(strip_tags($item->get_description()), 0, 500) }} </p>
but one thing i noticed, it ...
0
votes
0
answers
41
views
echo Javascript Function to be held by Simple Pie function on Php not working
this is my first attempt to ask here, hoping for your kind attention =) so here it is, I'm making a simple news aggregator site that will shows random news base on the site viewer location (COUNTRY). ...
0
votes
1
answer
375
views
Using SimplePie and Simple HTML DOM together
I'm trying to use SimplePie to pull a list of links via RSS feeds and then scrape those feeds using Simple HTML DOM to pull out images. I'm able to get SimplePie working to pull the links and store ...
1
vote
1
answer
197
views
Simplepie get_permalink returns feed link instead of item link
I am using Simplepie to access this feed. I use SimplePie's get_permalink() method to get the link of each item in the feed. This works with other feeds, but with this one get_permalink() is returning ...
0
votes
1
answer
298
views
How do I put a SimplePie Enclosure Link into an Array
I am attempting to parse an RSS feed which uses media enclosures. I am using SimplePie and I have been able to parse it, and make all the needed elements appear on the page.
But I am writing a plugin ...
0
votes
0
answers
39
views
Specify get_title() if none found
I'm parsing some feeds using simplepie, I have an array with multiple rss urls, and I am storing it in the database. Along with the url I am also trying to store the get_title() which is like the ...
0
votes
1
answer
396
views
How get pubDate of channel using SimplePie?
I have next rss:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Новини на tsn.ua</title>...
2
votes
1
answer
244
views
Does simplepie $itme->get_content() output need to be escaped when echoing to page?
I have a WordPress plugin that reads an RSS feed and outputs it to the browser in an admin page. In the plugin, it uses the standard feed.php template from WordPress (wp-includes/feed.php), which uses ...
0
votes
0
answers
263
views
simplepie rss feed and reader in Wordpress
trying to create a simple reader that includes featured image, title and brief description. I have all of this now but it includes more than I want and I don't know how to shorten things up.
The ...
0
votes
0
answers
224
views
How to get item source from inoreader feed?
I have a inoreader tag feed url with below format:
<item>
<title></title>
<link></link>
<description></description>
<pubDate></...
0
votes
0
answers
138
views
SimplePie double feed link, Mybb syndication
i have a website in joomla, and forum: MYBB,
i installed simplepie to show last posts on my home page,
It works,
But i have only 2 little problems
The update links are posting on a new line so it ...
-1
votes
1
answer
106
views
php if statement to display remove thumbnail [closed]
I'm trying to use an if statement so that if the variable isn't set it wil display "noimg.jpg" or no thumbnail, but it isn't doing that at the moment, it's displaying a broken thumbnail.
$feed = new ...
1
vote
1
answer
619
views
SimplePie Fatal Error: Call to a member function get_base() on a non-object (Line 176)
I hope someone got some tips for me.
I'm having an issue with SimpePie updating my MySQL database. I'm using it to fetch an array of RSS feeds based on a small tweak of the code below.
The weird ...
0
votes
1
answer
179
views
How do I use Simplepie to parse an RSS Feed (using a custom namespace) within a Wordpress template?
I'm trying to parse a third-party RSS feed on my Wordpress site, using fetch_feed.
In addition to the standard <title>, <link>, and <description> elements, the feed I'm trying to ...
3
votes
2
answers
19k
views
Pulling posts from another WordPress site
I am trying to get the 2 latest posts from my personal website, using the code below from http://codex.wordpress.org/Function_Reference/fetch_feed#Usage
<h2><?php _e( 'Recent news from Some-...
0
votes
0
answers
61
views
Parsing URLs from RSS-feed
My web application parses URLs from certain RSS-feeds. I'm using Simple Pie for this purpose. Parsing is working perfectly. All parsed URLs are stored in database and I'm generating a webpage from ...