rss

Retrieving Google Reader stats for RSS feed and items

早过忘川 提交于 2019-12-11 02:51:34
问题 I would like to programmatically retrieve Google Reader's feed stats for my own site's RSS feed. In particular, I'd like to get the "liked" count, to incorporate it into scoring feed items. Any idea how to do this? 回答1: You can get stats (such as subscribercount) using the following URL: http://www.google.com/reader/api/0/stream/details?s=feed/[your feed url here] You can get likes for your feed items using the following URL (): http://www.google.com/reader/atom/feed/[your feed url here] 回答2:

Merging Multiple RSS feeds

别来无恙 提交于 2019-12-11 02:18:25
问题 I’m very new to programming with RSS feeds to please forgive me if this sounds like a really general question. Is it possible to take multiple RSS feeds from multiple sites and combine them as a single object to show to the end user? For example, could I take the latest news headlines from one site, the latest blog updates from a totally different site and combine them into a single list to show the user? I have seen this sort of question asked before and it seems like its possible, but the

How to check if a site has rss feeds

百般思念 提交于 2019-12-11 01:37:04
问题 Suppose I want to make a webpage that takes domain name of a website as input and checks if that site has rss feeds or not. And if that site has rss feeds, it proceeds to the next page. Or in other words, just check if that given domain name has this tag or not- <link rel="alternate" type="application/rss+xml" title="Something" href="http://www.example.com/feed1.xml” /> How do I do it using php or javascript ? 回答1: Due to the same-origin policy, you won't be able to implement that in

Reading a remote URL in Domino LotusScript

前提是你 提交于 2019-12-11 01:25:08
问题 I have a remote RSS feed which has to be transformed into Notes documents using LotusScript. I've looked through the documentation, but I can't find how to open a remote URL in order to retrieve its contents. In other words, some sort of wget- or curl-like functionality. Can anyone shed some light on how to do this? Using Java is not an option. Thanks. 回答1: Check out the NotesDOMParser class - available in LotusScript - which lets you (indirectly) pull XML from a remote URL and process in a

Get all RSS feed entries with Rome Library

六月ゝ 毕业季﹏ 提交于 2019-12-11 00:09:18
问题 i am using Rome library for Java to parse some RSS. By default it takes 25 entries. Tell me please, how to get next 25 entries? My test code is: public static SyndFeed getSyndFeedForUrl(String url) throws Exception { SyndFeed feed = null; InputStream is = null; try { URLConnection openConnection = new URL(url).openConnection(); is = new URL(url).openConnection().getInputStream(); if("gzip".equals(openConnection.getContentEncoding())){ is = new GZIPInputStream(is); } InputSource source = new

XDocument.Load(feedUrl) returns “Data at the root level is invalid. Line 1, position 1.”

天大地大妈咪最大 提交于 2019-12-10 23:51:46
问题 first of all, this is more of a solution, than a question. It took me a while to resolve, so I thought my resolution might worth sharing. I was trying to load an RSS feed using XDoument.Load(feedUrl) and was getting the above Exception. I checked the feed itself in my browser and the format looked fine. So after finding some similar situations here: Meaning of - <?xml version="1.0" encoding="utf-8"?> Why "Data at the root level is invalid. Line 1, position 1." for XML Document? LINQ TO XML

Java - Rome: I am trying to parse RSS feed but get a error on some channels

喜夏-厌秋 提交于 2019-12-10 22:28:25
问题 I am trying to work with rss and parse it. I found the Rome and I am trying to work with it by code: private SyndFeed parseFeed(String url) throws IllegalArgumentException, FeedException, IOException { return new SyndFeedInput().build(new XmlReader(new URL(url))); } public Boolean processRSSContent(String url) { try { SyndFeed theFeed = this.parseFeed(url); SyndEntry entry = theFeed.getEntries().get(0); ZonedDateTime entryUtcDate = ZonedDateTime.ofInstant(entry.getPublishedDate().toInstant(),

Have a correct datetime with correct timezone

喜夏-厌秋 提交于 2019-12-10 21:42:43
问题 I am using feedparser in order to get RSS data. Here is my code : >>> import datetime >>> import time >>> import feedparser >>> d=feedparser.parse("http://.../rss.xml") >>> datetimee_rss = d.entries[0].published_parsed >>> datetimee_rss time.struct_time(tm_year=2015, tm_mon=5, tm_mday=8, tm_hour=16, tm_min=57, tm_sec=39, tm_wday=4, tm_yday=128, tm_isdst=0) >>> datetime.datetime.fromtimestamp(time.mktime(datetimee_rss)) datetime.datetime(2015, 5, 8, 17, 57, 39) In my timezone (FR), the actual

Youtube rss feed to show most popular video?

为君一笑 提交于 2019-12-10 19:51:48
问题 I have two youtube rss feeds but I want the most popular feed to show the most viewed video at the top, how can I do this? http://www.youtube.com/rss/tag/channelname.rss http://gdata.youtube.com/feeds/api/users/channelname/uploads 回答1: The feed you want is: http://gdata.youtube.com/feeds/api/users/channel/uploads?alt=rss&v=2&orderby=viewCount This will give you a channel's youtube videos sorted by view count. You can add &max-results=50 if you want more than the default 25. (Also I tend to

joda - parsing time zone of pubDate in RSS item

穿精又带淫゛_ 提交于 2019-12-10 19:34:53
问题 I'm parsing pubDate in RSS item using Joda. The date have to be in RFC-822 format: http://feed2.w3.org/docs/error/InvalidRFC2822Date.html The problem is that when there is a date like: Wed, 02 Oct 2002 13:00:00 GMT I have to use pattern: DateTimeFormat.forPattern("EEE, dd MMM yyyy HH:mm:ss ZZZ").withLocale(Locale.ENGLISH).withOffsetParsed(); But it can be also date like: Wed, 02 Oct 2002 15:00:00 +0200 . In this case ZZZ dosen't work, I have to use one Z: DateTimeFormat.forPattern("EEE, dd