![]() |
VOOZH | about |
dotnet add package CodeHollow.FeedReader --version 1.2.6
NuGet\Install-Package CodeHollow.FeedReader -Version 1.2.6
<PackageReference Include="CodeHollow.FeedReader" Version="1.2.6" />
<PackageVersion Include="CodeHollow.FeedReader" Version="1.2.6" />Directory.Packages.props
<PackageReference Include="CodeHollow.FeedReader" />Project file
paket add CodeHollow.FeedReader --version 1.2.6
#r "nuget: CodeHollow.FeedReader, 1.2.6"
#:package CodeHollow.FeedReader@1.2.6
#addin nuget:?package=CodeHollow.FeedReader&version=1.2.6Install as a Cake Addin
#tool nuget:?package=CodeHollow.FeedReader&version=1.2.6Install as a Cake Tool
FeedReader is a .net library used for reading and parsing RSS and ATOM feeds. Supports RSS 0.91, 0.92, 1.0, 2.0 and ATOM. Developed because tested existing libraries do not work with different languages, encodings or have other issues. Library tested with multiple languages, encodings and feeds.
FeedReader library is available as NuGet package: https://www.nuget.org/packages/CodeHollow.FeedReader/
The simplest way to read a feed and show the information is:
var feed = await FeedReader.ReadAsync("https://arminreiter.com/feed");
Console.WriteLine("Feed Title: " + feed.Title);
Console.WriteLine("Feed Description: " + feed.Description);
Console.WriteLine("Feed Image: " + feed.ImageUrl);
// ...
foreach(var item in feed.Items)
{
Console.WriteLine(item.Title + " - " + item.Link);
}
There are some properties that are only available in e.g. RSS 2.0. If you want to get those properties, the property "SpecificFeed" is the right one:
var feed = await FeedReader.ReadAsync("https://arminreiter.com/feed");
Console.WriteLine("Feed Title: " + feed.Title);
if(feed.Type == FeedType.Rss_2_0)
{
var rss20feed = (Feeds.Rss20Feed)feed.SpecificFeed;
Console.WriteLine("Generator: " + rss20feed.Generator);
}
If the url to the feed is not known, then you can use FeedReader.GetFeedUrlsFromUrl(url) to parse the url from the html webpage:
string url = "arminreiter.com";
var urls = FeedReader.GetFeedUrlsFromUrl(url);
string feedUrl;
if (urls.Count() < 1) // no url - probably the url is already the right feed url
feedUrl = url;
else if (urls.Count() == 1)
feedUrl = urls.First().Url;
else if (urls.Count() == 2) // if 2 urls, then its usually a feed and a comments feed, so take the first per default
feedUrl = urls.First().Url;
else
{
// show all urls and let the user select (or take the first or ...)
// ...
}
var readerTask = FeedReader.ReadAsync(feedUrl);
readerTask.ConfigureAwait(false);
foreach (var item in readerTask.Result.Items)
{
Console.WriteLine(item.Title + " - " + item.Link);
// ...
}
The code contains a sample console application: https://github.com/codehollow/FeedReader/tree/master/FeedReader.ConsoleSample
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp1.0 netcoreapp1.0 was computed. netcoreapp1.1 netcoreapp1.1 was computed. netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 is compatible. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard1.3 netstandard1.3 is compatible. netstandard1.4 netstandard1.4 was computed. netstandard1.5 netstandard1.5 was computed. netstandard1.6 netstandard1.6 was computed. netstandard2.0 netstandard2.0 was computed. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net452 net452 is compatible. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen30 tizen30 was computed. tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Universal Windows Platform | uap uap was computed. uap10.0 uap10.0 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on CodeHollow.FeedReader:
| Package | Downloads |
|---|---|
|
Wikiled.News.Monitoring
News Monitoring base library |
|
|
Destinet.SyncProvider.RSS
Package Description |
|
|
Wikiled.Delfi
Delfi parsing library |
|
|
SuperMemoAssistant.Plugins.Import
Package Description |
|
|
RssThrottle
Allows you to control the flow and timing of an RSS feed |
Showing the top 6 popular GitHub repositories that depend on CodeHollow.FeedReader:
| Repository | Stars |
|---|---|
| BedrockLauncher/BedrockLauncher | |
|
CervantesSec/cervantes
Cervantes is an open-source, collaborative platform designed specifically for pentesters and red teams. It serves as a comprehensive management tool, streamlining the organization of projects, clients, vulnerabilities, and reports in a single, centralized location.
|
|
|
Qolors/FeedCord
A dead simple RSS Feed with Discord Webhooks
|
|
|
ohhsodead/arisen-studio
Browse, Download and Install Mods for PlayStation 3 & Xbox 360
|
|
|
Strypper/mauisland
MAUIsland 🏝️ is the number 1 controls gallery for .NET MAUI
|
|
|
timkicker/podliner
Podcasts in any terminal. Fast, clean, offline.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.6 | 476,950 | 3/16/2023 |
| 1.2.4 | 113,945 | 1/14/2022 |
| 1.2.3 | 1,019 | 1/14/2022 |
| 1.2.2 | 42,172 | 8/19/2021 |
| 1.2.1 | 247,853 | 5/25/2019 |
| 1.2.0 | 1,318 | 5/25/2019 |
| 1.1.6 | 33,316 | 12/28/2018 |
| 1.1.5 | 15,782 | 9/19/2018 |
| 1.1.4 | 5,954 | 8/19/2018 |
| 1.1.2 | 17,884 | 4/15/2018 |
| 1.1.1.1 | 2,111 | 4/15/2018 |
| 1.1.1 | 3,635 | 3/3/2018 |
| 1.1.0.2 | 26,944 | 9/15/2017 |
| 1.1.0.1 | 3,394 | 7/21/2017 |
| 1.1.0 | 3,510 | 6/1/2017 |
| 1.0.3.6 | 2,513 | 5/12/2017 |
| 1.0.3.5 | 1,782 | 5/8/2017 |
fix issue