https://github.com/vborovikov/readability
A C# version of the readability lib
https://github.com/vborovikov/readability
csharp dotnet html-parser readability
Last synced: 5 months ago
JSON representation
A C# version of the readability lib
- Host: GitHub
- URL: https://github.com/vborovikov/readability
- Owner: vborovikov
- License: other
- Created: 2024-02-21T07:30:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T09:13:43.000Z (5 months ago)
- Last Synced: 2025-01-07T09:38:42.823Z (5 months ago)
- Topics: csharp, dotnet, html-parser, readability
- Language: C#
- Homepage:
- Size: 6.46 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Readability
[](https://www.nuget.org/packages/ReadabilityLib/)
[](https://www.nuget.org/packages/ReadabilityLib/#versions-body-tab)
[](https://www.apache.org/licenses/LICENSE-2.0)A C# port of standalone version of the readability library used for [Firefox Reader View](https://support.mozilla.org/kb/firefox-reader-view-clutter-free-web-pages).
## Installation
Readability is available on Nuget:
```bash
dotnet add package ReadabilityLib
```You can then `using Readability;` it.
## Basic usage
To parse an article, you need to call `Parse()` method on a [Brackets](https://github.com/vborovikov/brackets) `Document` object. Here's an example:
```csharp
var document = await Document.Html.ParseAsync(documentContentStream);
var article = document.Parse();
```