In this video we'll build a set of classes to represent a blog post, a blog, and a collection of blogs that download RSS or Atom feeds from the Web using the SyndicationClient class.
Changes in the video as of 3/25/2013
public async Task GetFeedsAsync()
{
Task
GetFeedAsync("http://blogs.windows.com/skydrive/b/skydrive/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows/b/windowsexperience/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows/b/extremewindows/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows/b/business/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows/b/bloggingwindows/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows/b/windowssecurity/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows/b/springboard/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows/b/windowshomeserver/atom.aspx");
// There is no Atom feed for this blog, so use the RSS feed.
Task
GetFeedAsync("http://blogs.windows.com/windows_live/b/windowslive/rss.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows_live/b/developer/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/ie/b/ie/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows_phone/b/wpdev/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows_phone/b/wmdev/atom.aspx");
Task
GetFeedAsync("http://blogs.windows.com/windows_phone/b/windowsphone/atom.aspx");
if (feed.SourceFormat == SyndicationFormat.Atom10)
{
if (item.Content != null && item.Content.Text != null)
{
feedItem.Content = item.Content.Text;
}
if (item.Id != null)
{
feedItem.Link = new Uri("http://windowsteamblog.com" + item.Id); // just use feedItem.Link = new Uri(item.Id);
var matches = _feedDataSource.Feeds.Where((feed) => feed != null && feed.Title.Equals(title));
var matches = _feedDataSource.Feeds
.Where(group => group != null)
.SelectMany(group => group.Items).Where((item) => item.Title.Equals(uniqueId));
Podchaser is the ultimate destination for podcast data, search, and discovery. Learn More