tuanva / NReadability

NReadability is a tool for removing clutter from HTML pages so that they are more enjoyable to read.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NReadability

Description

NReadability cleans up hard-to-read articles on the Web. It's a tool for removing clutter from HTML pages so that they are more enjoyable to read.

The NReadability package consists of the .NET class library and a simple console application.

NReadability is a C# port of Arc90's Readability bookmarklet.

Installation

You can start using NReadability right away by installing the NuGet package:

PM> Install-Package NReadability

Getting Started

In order to transcode content downloaded from the Web:

var transcoder = new NReadabilityTranscoder();
string content;

using (var wc = new WebClient())
{
  content = wc.DownloadString("https://github.com/marek-stoj/NReadability");
}

bool success;

string transcodedContent =
  transcoder.Transcode(content, out success);

Or even simpler:

var transcoder = new NReadabilityWebTranscoder();
bool success;

string transcodedContent =
  transcoder.Transcode("https://github.com/marek-stoj/NReadability", out success);

About

NReadability is a tool for removing clutter from HTML pages so that they are more enjoyable to read.

License:Apache License 2.0


Languages

Language:HTML 87.3%Language:C# 12.5%Language:CSS 0.1%Language:Batchfile 0.1%Language:ASP 0.1%