A wrapper to use Firefox Reader View in the terminal.
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 globally:
yarn global add readability-wrapper
or
npm install -g readability-wrapper
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>