517qf / readability-wrapper

Command-line wrapper for Mozilla Readability.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

readability-wrapper

A wrapper to use Firefox Reader View in the terminal.

Why

Many websites do not optimise for viewing in terminal web browsers: for example, opening a New Statesman article in Lynx produces ~180 lines for the menu, which means multiple page downs are required to get to the article. Doing this for every news article is tedious. Passing the page through a clean-up script such as the one used by Firefox Reader View will remove this clutter and provide us with just the content.

Install

Install globally:

yarn global add readability-wrapper

or

npm install -g readability-wrapper

Usage

readability can either receive piped input or download and clean a URL. Cleaned HTML is printed to stdout.

# With cURL
$ curl <URL> | readability

# Pass URL directly
$ readability <URL>

About

Command-line wrapper for Mozilla Readability.js

License:The Unlicense


Languages

Language:JavaScript 100.0%