rss

Right way to work with RSS in ASP.NET Core 1.0 RC2

孤街浪徒 提交于 2019-11-29 02:33:16
问题 What is the right/best way to get data from an RSS feed using ASP.Net Core 1.0 (RC2) in C#. I want to work with the data in the RSS feed from my Wordpress blog which is https://blogs.msdn.microsoft.com/martinkearn/feed/ I know that in ASP.net 4.x, you'd use RssReader or SyndicationFeed but I cannot find an equivalent for ASP.net core. This is as far as I have got which returns the raw feed but I do not know how to extract the data from it. I want to enumerate the items and get the title and

Problem sorting RSS feed by date using XSL

*爱你&永不变心* 提交于 2019-11-29 00:18:32
I'm creating a website where I need to show the top 5 records from an RSS feed, and these need to be sorted by date and time. The date fields in the RSS feed are in the following format: "Mon, 16 Feb 2009 16:02:44 GMT" I'm having big problems getting the records to sort correctly - I've tried lots of different code examples I've seen, but none seem to sort the records correctly. The code for my XSL sheet is shown below, and the feed in question is here . Very grateful for anyones help!!! Thanks, Chris. XSL CODE: <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

java library for reading RSS and ATOM feeds [duplicate]

南楼画角 提交于 2019-11-28 22:38:52
This question already has an answer here: How to write an RSS feed with Java? 1 answer I am looking for libraries which can read RSS / ATOM feeds in my J2EE application (based on JBoss Seam). Is Rome the only application there for reading feeds? I am assuming the Seam RSS integration is only for generating RSS feeds and not for reading feeds. Nils Schmidt Have you had a look into the following list? http://java-source.net/open-source/rss-rdf-tools Even though it has been mentioned several times, I would suggest using Rome as well. Rome is a very mature, extremely well java-documented library

Parsing Atom & RSS in Ruby/Rails?

不问归期 提交于 2019-11-28 22:19:25
问题 I'm looking for something that will let me parse Atom and RSS in Ruby and Rails. I've looked at the standard RSS library, but is there one library that will auto-detect whatever type of feed it is and parse it for me? 回答1: Feedzirra is one of the better options: http://www.pauldix.net/2009/02/feedzirra-a-ruby-feed-library-built-for-speed.html Of course, I'm biased since I wrote it. :) 回答2: Googleage reveals some things. Were they not acceptable? Simple RSS Ruby-Feedparser require 'simple-rss'

Parsing Google News RSS with PHP

邮差的信 提交于 2019-11-28 22:09:39
I want to parse Google News rss with PHP. I managed to run this code: <? $news = simplexml_load_file('http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&topic=n&output=rss'); foreach($news->channel->item as $item) { echo "<strong>" . $item->title . "</strong><br />"; echo strip_tags($item->description) ."<br /><br />"; } ?> However, I'm unable to solve following problems. For example: How can i get the hyperlink of the news title? As each of the Google news has many related news links in footer, (and my code above includes them also). How can I remove those from the description? How can i

Google Reader API?

做~自己de王妃 提交于 2019-11-28 22:09:31
Is there any Google Reader API that I can plug in to? I building a clean RSS/Atom reader in PHP and would love to get all the goodies from Google Reader like the history of a feed, able to add comments to each feed item, etc. smilbandit I've built some google reader integration in python but I can share some of the api knowledge so you can get started. output=json is also available for all. Login: https www.google.com/accounts/ClientLogin POST &email=email&passwd=password&service=reader&source=appname&continue=http://www.google.com from the response grab Auth= Next hit: www.google.com/reader

Feedparser - retrieve old messages from Google Reader

眉间皱痕 提交于 2019-11-28 20:56:01
I'm using the feedparser library in python to retrieve news from a local newspaper (my intent is to do Natural Language Processing over this corpus) and would like to be able to retrieve many past entries from the RSS feed. I'm not very acquainted with the technical issues of RSS, but I think this should be possible (I can see that, e.g., Google Reader and Feedly can do this ''on demand'' as I move the scrollbar). When I do the following: import feedparser url = 'http://feeds.folha.uol.com.br/folha/emcimadahora/rss091.xml' feed = feedparser.parse(url) for post in feed.entries: title = post

How to auto log into gmail atom feed with Python?

吃可爱长大的小学妹 提交于 2019-11-28 20:50:26
Gmail has this sweet thing going on to get an atom feed: def gmail_url(user, pwd): return "https://"+str(user)+":"+str(pwd)+"@gmail.google.com/gmail/feed/atom" Now when you do this in a browser, it authenticates and forwards you. But in Python, at least what I'm trying, isn't working right. url = gmail_url(settings.USER, settings.PASS) print url opener = urllib.FancyURLopener() f = opener.open(url) print f.read() Instead of forwarding correctly, it's doing this: >>> https://user:pass@gmail.google.com/gmail/feed/atom Enter username for New mail feed at mail.google.com: This is BAD! I shouldn't

convert rss to JSON [closed]

社会主义新天地 提交于 2019-11-28 18:24:36
craigslist has an rss feed and i wish to convert the feed to JSON format so that I can parse it. anybody know any tool that can do this - convert craigslist rss (or any rss) to JSON format UPDATE : beware, Yahoo Pipes has now been shutdown by Yahoo! and the Google Feed API has been deprecated. Check superfeedr.com 's API which also does RSS to JSON conversion. You can use google feed api service Example: https://ajax.googleapis.com/ajax/services/feed/load?v=2.0&q=http://phys.org/rss-feed/&num=20 Structure https://ajax.googleapis.com/ajax/services/feed/load?v=2.0&q=RSS_URL_TO_CONVERT&num= Also

get the latest podcasts from itunes store with link by RSS, JSON or something

限于喜欢 提交于 2019-11-28 18:03:55
i'm trying to get the latest podcast informations out of "itunes store" to work with this data in several applications (iphone app and web app). Is there a way to get this informations? RSS, JSON or something? i want to work with this informations in objective-c and on a website with php or js. Is my question clear? :( //edit: anything unclear? leave a comment, if yes Based on your question, I just tried to find a way to do this. So you'll need the podcast ID (should be obvious from the URL if you have it; for instance http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=82884735