Skip to content

Instantly share code, notes, and snippets.

@mendesbarreto
Created December 1, 2014 21:36
Show Gist options
  • Save mendesbarreto/6d2ac755edcd574d2f18 to your computer and use it in GitHub Desktop.
Save mendesbarreto/6d2ac755edcd574d2f18 to your computer and use it in GitHub Desktop.
Read a Blogs RSS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Syndication;
using System.Xml;
static int Main(string[] args)
{
XmlTextReader reader = new XmlTextReader("http://your.com/feed/");
SyndicationFeed feed = SyndicationFeed.Load(reader);
Console.WriteLine(feed.Title.Text);
Console.WriteLine(feed.Items.Count());
Console.ReadKey();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment