rss

iOS UIWebView of RSS to look more like Safari and stay inside app

左心房为你撑大大i 提交于 2019-12-10 06:46:29
问题 Im creating an RSS reader app...but I have noticed that UIWebView renders the RSS feed very differently than Safari does. This is the RSS feed... http://www.sigmapi2.org/index.php?option=com_ninjarsssyndicator&feed_id=2&format=raw This is what I want my UIWebView to look like...this is a screenshot from iOS' Mobile Safari NSURL *url = [NSURL URLWithString:@"http://www.sigmapi2.org/index.php?option=com_ninjarsssyndicator&feed_id=1&format=raw"]; NSURLRequest *request = [NSURLRequest

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

本秂侑毒 提交于 2019-12-10 04:04:57
问题 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

SyndicationFeed change namespace prefix from a10 to atom

谁说胖子不能爱 提交于 2019-12-10 02:47:41
问题 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? 回答1: To

Encoding error while parsing RSS with lxml

偶尔善良 提交于 2019-12-10 02:38:12
问题 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

Creating a rss feed in Symfony

你。 提交于 2019-12-10 00:12:52
问题 I'm trying to create a RSS feed in Symfony. I've added the following route : rss_every_content: url: /rss/all param: { module: content, action: index, sf_format: rss } requirements: sf_method: [get] And I created a file called indexSuccess.rss.php in module/content/templates/ : test message But when I go to the url mysite/rss, all I get is an empty page ! No content at all, not even the debug toolbar... Help ! What is going on ? 回答1: I had the same problem as you. I noticed that sf_format:

Rome XmlReader not reading https feed

早过忘川 提交于 2019-12-09 23:00:28
问题 I am trying to read https://d3ca01230439ce08d4aab0c61810af23:bla@mycon.mycompany.com/recordings.atom using Rome but its giving me error INFO: Illegal access: this web application instance has been stopped already. Could not load org.bouncycastle.jcajce.provider.symmetric.AES$ECB. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. and Server returned

Parse RSS pubDate to Date object in JavaScript

≡放荡痞女 提交于 2019-12-09 18:41:49
问题 How would I do this? Tue, 2 Feb 2010 19:34:21 Etc/GMT 回答1: It works right out of the box. The Date object in JavaScript can be set by passing a number of standard time formats. The format used in RSS is one of these. Example: var pubDate = "Sun, 27 Mar 2011 20:17:21 +0100"; var date = new Date(pubDate); var months = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); var string = date.getDate() + " " + months[date

Google feed api deprecated, How can i find rss feed of web site? [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-09 18:38:40
问题 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 last year . I used Google Feed API for finding rss feeds of special keywords or websites, now this api deprecated, so i need alternative way for finding rss of website, I google it but i cannot find any good way.. Find rss from parsing html of website is not good for me because i want to find all rss from any subdomains of it

How to get more Feed items?

♀尐吖头ヾ 提交于 2019-12-09 18:03:13
问题 How would I get the next page or more results for a feed? For example, when I go to Security Now feed page, there is no "next" link of any kind and the url parameter of "page=100" does nothing: http://leoville.tv/podcasts/sn.xml I get only 1 page of results of about 20 episodes. However my Google Reader can successfully retrieve episodes that are earlier than that. 回答1: Indeed it is true that Google Reader caches the items and it is NOT possible to paginate on RSS2, RSS or Atom feeds (unless

How to create entries with image element in the RSS Feed using the java ROME API?

ぐ巨炮叔叔 提交于 2019-12-09 13:36:54
问题 I am trying to create the RSS Feeds using java ROME API. My requirement is that every entry should contain an Image as given below: <?xml version="1.0" encoding="UTF-8"?> <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> <channel> <title>Sample RSS Build Results</title> <link>http://time.is</link> <description>sample RSS build</description> <item> <title>Ist Feed</title> <link>http://mysampleurl1.com</link> <description>The build was successful!</description> <pubDate>Mon, 08