raklos
raklos

Reputation: 28545

process url from rss feed as new items come in

Can someone recommend an appropriate way to do this.

I'm subscribed to a number of rss feeds. What I would like to do is obtain the url and then do DoSomething(url) when i have the url of the new item that has come in.

basically process the new item as it comes in.

What would I need to do to have this automatically? without me having to force the process?

Upvotes: 0

Views: 110

Answers (1)

Usurer
Usurer

Reputation: 213

Make scheduler to send request to RSS feed source once per munute/hour/other time period.

Parse responce via stuff from System.ServiceModel.Syndication namespace - you'll have a collection of SyndicationItems that represents obtained data.

For each item that you don't have in your storage - run DoSomething with url from SyndicationItem.Links.

Upvotes: 1

Related Questions