rss

Providing RSS and Atom feeds? Do we need both or has RSS won? [closed]

て烟熏妆下的殇ゞ 提交于 2019-11-29 16:57:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to provide some RSS feed(s) for my site. Is it worth providing Atom feeds? or is Atom the more common feed? Is there a winner? BTW, this relates to programming because I'm required to program the feed which we will provide (or use some open source code, etc). Update So far it looks like peeps are saying

Getting deprecated error with Simplepie

痴心易碎 提交于 2019-11-29 15:40:40
I have installed the latest Simplepie code (1.2.1) and I am using the demo code they provide: <?php require 'simplepie.inc'; $url = 'http://news.google.com/news?ned=us&topic=h&output=rss'; $feed = new SimplePie(); $feed->set_feed_url($url); $feed->init(); // default starting item $start = 0; // default number of items to display. 0 = all $length = 0; // if single item, set start to item number and length to 1 if(isset($_GET['item'])) { $start = $_GET['item']; $length = 1; } // set item link to script uri $link = $_SERVER['REQUEST_URI']; // loop through items foreach($feed->get_items($start,

Displaying Logged in Content on a Website

a 夏天 提交于 2019-11-29 15:33:41
I'm not quite sure how to describe this in words without making it overly complex, so here is basically what I want to happen: The user goes to my website, let's say: www.example.com/ The server goes to another website, example2.com, which has a field where their users should enter their username and password The server inputs the username and password automatically, and then gets redirected to a "user section" of the site. The server clicks on one of the links on the sidebar, and gets sent to another page "user section". Then, the site grabs all of the content on this page, and displays it on

Parsing XML CDATA with PHP [closed]

女生的网名这么多〃 提交于 2019-11-29 15:23:23
问题 I have a little problem that I can't figure out how to solve. I have an XML (actually it's RSS) file that I'm trying to parse with PHP, but the CDATA tag come out blank. Here's the XML Code and here's the PHP file Everything works fine, except that the description tag is not printing. I would be very grateful if some one could help. 回答1: Just out of curiosity, after getting your XML (I hope I didnt't destroy it in the process -- I'll see if I can edit the OP to correct it) : did you cast the

How to display WordPress RSS feed your website?

末鹿安然 提交于 2019-11-29 14:39:50
问题 Hello i have a website and a blog, i want to display my self hosted wordpress blog on my website. I want to show only 3 post on my website. I want to automatically check for any new post everytime when i reload my website, so that the recent three gets displayed only. I want to show the complete title of my wordpress blogpost but specific letters of description. Also the description should end up with a word not some piece of non-dictionary word ending with "..." How this can be done, i have

Facebook page's posts feed

强颜欢笑 提交于 2019-11-29 14:12:52
问题 Does anyone know how to fetch a facebook page's rss-feed nowadays? When I log in as a page and go to http://www.facebook.com/feeds/notifications.php?id=xx&viewer=xx&key=xx&format=rss20, I get an empty feed. Is there a corresponding "page" feed that contains the pages posts? Thanks, /M 回答1: The IDs in the URL below are the IDs you need to find to create your rss feed. http://www.new.facebook.com/feeds/notifications.php?id= YOUR_FACEBOOK_ID &viewer= YOUR_FACEBOOK_ID &key= YOUR_INTERNAL_KEY

Parsing an RSS feed in PHP with DOM

泄露秘密 提交于 2019-11-29 12:26:11
I'm trying to create an array of items from an RSS feed. I'm trying to test if it's working by echoing the title of the first item. I've been unsuccessful so far...I'd really appreciate any advice! I have two files, an 'index.php' and a 'test.php'. <!DOCTYPE html> <html> <head> <link rel = "stylesheet" type= "text/css" href = "style.css"> </head> <body> <h1>TEST SLIDER</h1> <p>First Title:<br> <?php include 'test.php'; $NPR_url = 'http://www.npr.org/rss/rss.php?id=1001'; $NPR = GetFeed($NPR_url); echo $NPR[0]['title']; ?> </p> </body> </html> and 'test.php' <?php function GetFeed($url){ $feed

How can I get Android market RSS feed

荒凉一梦 提交于 2019-11-29 12:25:06
Apple provides an RSS feed for their marketplace. Is there something similar for Android? I mean something similar to http://itunes.apple.com/us/rss I don't believe there is such a thing available for Android Market. If you really need it, I suppose you could use pages like the following and parse the content: https://market.android.com/details?id=apps_topselling_paid Far from a brilliant solution, but I think it's probably one of the best available at the moment. I was looking for this as well and found this link: http://androinica.com/2009/07/tips-follow-the-android-market-with-an-rss-reader

How to get more feeds from RSS url?

大憨熊 提交于 2019-11-29 12:17:28
Let's take for example the following rss-link: http://yourdailygerman.wordpress.com/feed/ As you can see, the RSS publishs only 1 item at a time. However, RSS Readers services like Feedly (and more), success to retrive more items: http://feedly.com/index.html#subscription%2Ffeed%2Fhttp%3A%2F%2Fyourdailygerman.wordpress.com%2Ffeed%2F I opened fiddler and I saw they have their own API (following "count" paramter as the items count to get), and I wonder - How they do that??? Thanks! You can't get more item from a feed if it's the first time you fetch it... however (and this is what Feedly does!),

Parse RSS feed for Android

。_饼干妹妹 提交于 2019-11-29 11:52:41
This is an example RSS feed. http://na.leagueoflegends.com/en/rss.xml <channel> <title>Most Recent News</title> <link>http://na.leagueoflegends.com/en/rss.xml</link> <description/> <language>en-US</language> <item> <title>Community-recommended bundles available now </title> <link>http://na.leagueoflegends.com/en/news/store/sales/community-recommended-bundles-available-now?ref=rss</link> <description><div class="field field-name-field-body-small field-type-text-long field-label-hidden">Craving something new at champ select? Get fed on these limited-time bundles based on players’ suggestions!<