rss

Maximum length of RSS description item

本小妞迷上赌 提交于 2019-12-05 03:59:36
Is there a length limit or maximum size for description tag inside an RSS item? Also, does this tag accommodate HTML tags? I will be generating both the <description> and <content:encoded> from the same source HTML and also wanted to know if the <description> tag accommodates HTML. As I know there are not a length limit. 2 In RSS 0.91 , various elements are restricted to 500 or 100 characters. There can be no more than 15 < item >s in a 0.91 < channel >. There are no string-length or XML-level limits in RSS 0.92 and greater. Processors may impose their own limits, and generators may have

RSS Feed parser library in Java [closed]

北慕城南 提交于 2019-12-05 03:33:10
Is there any Java helper utils/libraries available for parsing Rss/Atom feed? I checked RSSUtils but it looks like outdated. Piotr Take a look at: How to write an RSS feed with Java? java library for reading RSS and ATOM feeds Rome api should so the trick see http://www.javaworld.com/javaworld/jw-11-2007/jw-11-rome.html 来源: https://stackoverflow.com/questions/3020820/rss-feed-parser-library-in-java

Link to RSS/Atom feed, relative, doesn't work in Firefox

孤人 提交于 2019-12-05 03:05:26
I have a weird problem. I generate a HTML page, hosted let's say at http://www.x.com/stuff which contains <head> <link type="application/atom+xml" rel="alternate" href="/stuff/feed"/> .. </head> The result is: In IE7 all works well - you can click on the feed icon in the browser and the feed is displayed In Firefox, view source, click on the linked /stuff/feed and you see the source of the feed, so that works as expected In Firefox, view the page (not source), then click on the feed icon in the address bar, I get an error that it can't retrieve the URL feed://http//www.x.com/stuff/feed So the

Encoding error while parsing RSS with lxml

时间秒杀一切 提交于 2019-12-05 02:34:05
I want to parse downloaded RSS with lxml, but I don't know how to handle with UnicodeDecodeError? request = urllib2.Request('http://wiadomosci.onet.pl/kraj/rss.xml') response = urllib2.urlopen(request) response = response.read() encd = chardet.detect(response)['encoding'] parser = etree.XMLParser(ns_clean=True,recover=True,encoding=encd) tree = etree.parse(response, parser) But I get an error: tree = etree.parse(response, parser) File "lxml.etree.pyx", line 2692, in lxml.etree.parse (src/lxml/lxml.etree.c:49594) File "parser.pxi", line 1500, in lxml.etree._parseDocument (src/lxml/lxml.etree.c

RSS/Atom parsing library for .Net

只愿长相守 提交于 2019-12-05 02:12:36
问题 I'm trying to find a library that can read a given RSS/Atom feed, and that can guess its format and abstract it as a list of items. The idea is to build a simple RSS reader that could take any feed. I know PHP has a few libraries doing just that, but I can't find any .Net version. 回答1: I believe the ASP.NET RSS Toolkit does what you want. 回答2: If you are using 3.5 you can use classes from the System.ServiceModel.Syndication namespace 回答3: Argotic is a pretty comprehensive content syndication

Looking for alternative to Google Reader sync for RSS app

孤街浪徒 提交于 2019-12-05 01:45:07
问题 I'm in the early stages of designing an RSS app, and I'd like to include syncing to an online RSS feed service as a feature. Most such apps make use of Google Reader's feed/syncing features, but Google is now moving sync out of its Reader service, and also its API remains undocumented. Are there any alternatives to Google Reader that offer online syncing of feeds with a desktop client, and which have a documented API? 回答1: A couple suggestions, the original web RSS Reader BlogLines is still

SyndicationFeed change namespace prefix from a10 to atom

北城以北 提交于 2019-12-05 01:34:23
I am using System.ServiceModel.Syndication.SyndicationFeed to create an rss feed from which I get this: <rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0"><channel>...</channel></rss> It is all working swimmingly, except for when I validate my feed . The validator complains about the a10 namespace prefix and suggests that I use atom instead. That sounds reasonable.. except I can't see a straightforward way of changing the prefix. Any ideas on ways of changing the prefix? To specify a custom name for the atom extensions you need to disable SerializeExtensionsAsAtom on the feed formatter

Refreshing RSS feeds at near-realtime intervals

只谈情不闲聊 提交于 2019-12-05 00:51:29
问题 I've got a system that fetches a few hundred RSS feeds. Currently they're on a 10 minute refresh cycle, but I'd preferably like to make that faster. What is a strategy to fetch the RSS sources at near-realtime/push intervals? Some solutions I've come across: do a fetch at 1 minute; if no changes, fetch again at 2, then 4, then 8, etc. find the average time-between-updates interval/variance of the RSS feed, and put them in a bucket (this one updates every 3 mins, so do a check every 1 minute;

Images On The Description Of An RSS Item

☆樱花仙子☆ 提交于 2019-12-05 00:29:08
问题 I'm starting with RSS development, for my new site, but I want to know if there is any way to put images on the description of a item, something like this: <item> <title>Image Test</title> <link>http://testin.test</link> <description>Some text... <img src="image.jpg"></description> </item> And if it's possible, which feed readers will be able to visualize it clearly and perfect. 回答1: You can have a reference to an image inside CDATA (which is typically done). Example: <item><title>June 13 :

Java - Rome rss reader?

点点圈 提交于 2019-12-05 00:13:13
问题 I am trying to read rss. I copied the jar file in to my libs folder, and I added the jar file to my eclipse project as a library. In order and export i checked my jar file. Now I am trying to use the rss reader provided by rome import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; import com.sun.syndication.io.SyndFeedInput; import com.sun.syndication.io.XmlReader; URL url = new URL("http://myUrlGoesHere"); XmlReader reader = new XmlReader(url);