rss

Exceptions with DateTime parsing in RSS feed use SyndicationFeed in c#

随声附和 提交于 2019-11-30 14:01:57
问题 I'm trying to parse Rss2, Atom feeds using SyndicationFeed objects. But I'm getting XmlExceptions while parsing DateTime field like pubDate 2012-01-17 08:01:06 public static List<SyndicationItem> getRssData(string url) { List<SyndicationItem> list = new List<SyndicationItem>(); WebClient client = new WebClient(); try { SyndicationFeed feed = SyndicationFeed.Load(XmlReader.Create(url)); list = (from item in feed.Items select item).ToList(); } catch (Exception e) { throw e; } return list; } The

Are there RSS feeds for iOS apps' reviews on the app store?

徘徊边缘 提交于 2019-11-30 13:58:05
问题 I am interested in getting an RSS feed for new customer reviews for my app on the app store, does Apple provide an RSS feed for new app reviews? 回答1: There are indeed feeds of App Store reviews by country. Here's an example from my app (Snapix): https://itunes.apple.com/us/rss/customerreviews/id=471339479/sortBy=mostRecent/xml 回答2: Apple doesn't, but there are third parties that do. I use AppComments Apple has since added an RSS feed, see Thundertron's answer below 来源: https://stackoverflow

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

纵饮孤独 提交于 2019-11-30 11:20:22
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 Atom should be the way to go if I need to only spend time supporting one? Anyone else agree with these thoughts (and hopefully backed up by some stats??) Possible Solution While stumbling around the net for some RSS schema details, I was reading the RSS Wiki entry , and they say As of

policy for polling rss

与世无争的帅哥 提交于 2019-11-30 10:11:29
问题 I have an application that polls several rss sources on the web. What is the etiquette when polling other's web servers. How frequently to poll, etc? What are the best practices? 回答1: Make use of HTTP cache. Send Etag and LastModified headers. Recognize 304 Not modified response. This way you can save a lot of bandwidth. Additionally some scripts recognize the LastModified header and return only partial contents (ie. only the two or three newest items instead of all 30 or so). Don’t poll RSS

How to display WordPress RSS feed your website?

丶灬走出姿态 提交于 2019-11-30 09:39:00
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 heard that it can be done through RSS. Can somebody help me? To accomplish this you need to read the

SyndicationFeed content:encoded

╄→尐↘猪︶ㄣ 提交于 2019-11-30 09:35:27
I’m using the SyndicationFeed class to consume some rss feeds. I am wondering how to get the content:encoded node of an RSS feed. This is the code I’m using: XmlReader reader = XmlReader.Create(response.GetResponseStream()); SyndicationFeed feed = SyndicationFeed.Load(reader); foreach (SyndicationItem item in feed.Items) { string title = (item.Title != null) ? item.Title.Text : String.Empty; string content = ?? string pubDate = (item.PublishDate != null) ? item.PublishDate.ToString("r") : String.Empty; } I can use item.Summary.Text but that seems to return the Description node, which can be

Displaying Logged in Content on a Website

[亡魂溺海] 提交于 2019-11-30 09:30:26
问题 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

Facebook page's posts feed

倾然丶 夕夏残阳落幕 提交于 2019-11-30 09:20:50
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 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 &format=rss20 There are 3 numbers in this URL. The number that follows “id” is your Facebook ID number. This

How to properly place Date in <pubdate> element on RSS feed

和自甴很熟 提交于 2019-11-30 09:07:17
I'm using RSS Graffitty to post RSS items to a facebook page. The app told me the items were missing the publication date so I added this tag: echo "<pubdate>".$row['Date']."</pubdate>"; $row['Date'] is obtained from my MySQL database and it's a Datetime column. How must I format it/echo it so it's recognized by the RSS feed? Must I change the element? Thanks RSS 2.0 specifications on the <pubDate> element should conform to the RFC 822 Date and Time syntax . Namely, to display it in the following format: Fri, 21 Dec 2012 10:00:01 GMT If you error run your RSS feed through the W3C Feed

Exceptions with DateTime parsing in RSS feed use SyndicationFeed in c#

偶尔善良 提交于 2019-11-30 09:05:32
I'm trying to parse Rss2, Atom feeds using SyndicationFeed objects. But I'm getting XmlExceptions while parsing DateTime field like pubDate 2012-01-17 08:01:06 public static List<SyndicationItem> getRssData(string url) { List<SyndicationItem> list = new List<SyndicationItem>(); WebClient client = new WebClient(); try { SyndicationFeed feed = SyndicationFeed.Load(XmlReader.Create(url)); list = (from item in feed.Items select item).ToList(); } catch (Exception e) { throw e; } return list; } The url link http://news.163.com/special/00011K6L/rss_newstop.xml <item id="2"> <title>...</title> <link>.