SimpleFeedReader 2.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleFeedReader --version 2.0.1                
NuGet\Install-Package SimpleFeedReader -Version 2.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleFeedReader" Version="2.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleFeedReader --version 2.0.1                
#r "nuget: SimpleFeedReader, 2.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SimpleFeedReader as a Cake Addin
#addin nuget:?package=SimpleFeedReader&version=2.0.1

// Install SimpleFeedReader as a Cake Tool
#tool nuget:?package=SimpleFeedReader&version=2.0.1                

Logo SimpleFeedReader

Easy to use, simple, Syndication feed reader (Atom / RSS). Available as Nuget Package.

Usage

var reader = new FeedReader();
var items = await reader.RetrieveFeedAsync("http://www.nytimes.com/services/xml/rss/nyt/International.xml");

foreach (var i in items)
    Console.WriteLine($"{i.Date.ToString("g")}\t{i.Title}");

Output:

4/16/2014  4:27 AM     Growth Rose 7.4% in First Quarter, China Reports
4/16/2014 12:29 AM     Milan Court Gives Berlusconi a Year of Community Service
4/15/2014 12:34 PM     Desalination Plant Said to Be Planned for Thirsty Beijing
4/15/2014  7:24 PM     After Prank by Dutch Girl on Twitter, Real Trouble
4/15/2014  4:33 PM     Afghanistan Says NATO Airstrike in East Killed Civilians
4/16/2014 12:49 AM     Iran Escalates Dispute Over U.N. Envoy
...

Notes

By default the FeedReader suppresses exceptions (since feeds tend to go down occasionally, they contain invalid XML from time-to-time and have all other sorts of problems). However, you can tell the FeedReader to throw exceptions simply by setting the throwOnError argument of the FeedReader's constructor to true.

The FeedReader also accepts an optional FeedNormalizer (needs to implement the IFeedItemNormalizer interface). This "normalizer" can transform or otherwise affect the way SyndicationItems are transformed into FeedItems. The FeedItem is the basic object retrieved from feeds and, for simplicity, contains only a few simple properties and methods. It has Title, Summary, Content, Uri , PublishDate, LastUpdatedDate, Images and Categories properties and that's about it. The default DefaultFeedItemNormalizer strips and decodes any HTML in the Title, Summary, Content to (try to) reliably return plain text only. The Date property will be populated with whatever the SyndicationItem's latest date is: the PublishDate or LastUpdatedTime.

You can implement your own IFeedItemNormalizer (see the UnitTest project for examples) to handle 'normalization' differently to your desire. The FeedReader has some convienience methods like RetrieveFeedsAsync() that retrieve more than one feed.

The project is aimed at easy, don't-make-me-think, retrieval of syndication feeds' entries. It is by no means intended as full-fledged feedreader. It is, however, easily extensible for your purposes (again, see the UnitTest project for examples; the ExtendedFeedItem and ExtendedFeedItemNormalizer are nice concrete examples of this idea).

Build Status Nuget version

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on SimpleFeedReader:

Repository Stars
YetAnotherPomodoroApp/YAPA-2
Minimalistic desktop timer app for Pomodoro Technique users
cmdrmcdonald/EliteDangerousDataProvider
Version Downloads Last updated
2.0.4 178 3/7/2025
2.0.3 160 3/7/2025
2.0.2 156 3/7/2025
2.0.1 161 3/7/2025
2.0.0 163 3/7/2025
1.0.9 15,433 5/27/2020
1.0.8 44,565 8/7/2018
1.0.7 28,264 3/9/2017
1.0.6 12,985 11/28/2016
1.0.5 1,195 11/9/2016
1.0.4 4,572 1/25/2015
1.0.3 1,519 10/14/2014
1.0.2 1,863 4/17/2014
1.0.1 1,388 4/16/2014

* Added netcore support