Is it possible to observe Rss feed change in C#?

五迷三道 提交于 2019-12-05 03:57:42

问题


I want to create a service that would listen to few Rss feeds and parse new feeds to jSon for further use. Is it possible to observe to feed changes and if yes then how?

thanks


回答1:


Check out the System.ServiceModel.Syndication.SyndicationFeed namespace in the framework - it has pretty much everything you need to download feeds. Scott Guthrie has a couple of good example blog posts about reading feeds here and here.




回答2:


The only way to observe RSS feed changes is to poll the feed by requesting it over a set interval of time. This is because a feed is typically delivered over HTTP, which is a stateless request-response protocol and not a publish-subscribe protocol.




回答3:


I suggest you check out RSS.NET, per it's website it can listen for changes.



来源:https://stackoverflow.com/questions/7010642/is-it-possible-to-observe-rss-feed-change-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!