• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    Go
  • Created over 7 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Read webpages in readability mode, inside your terminal.

Newspaper

Read webpages in readability mode, inside your terminal.

asciicast

Why?

Newsbeuter is a great command line tool to read your favourite RSS feeds. Also, it lets you choose which command to invoke when opening an article URL link, by setting the browser key inside configurations. newspaper aims to be a simple command line tool to read URL's content in a clean and readable way.

You can choose to plug newspaper inside newsbeuter, or use it directly from the command line.

The heavy lifting is made by Mercury, an amazing and free service that converts URL to markdown.

This package starts as a light and pluggable command between their api and the less command.

Usage

  • go get github.com/desmondhume/newspaper
  • Sign up for Mercury and create an api key.
  • Store the api key inside an ENV variable called MERCURY_API_KEY
  • newspaper URL

To use newspaper as newsbeuter browser, place this line in your newsbeuter config:

browser newspaper [OPTIONS] %u

Options

-no-links    Remove markdown links
-plaintext   Disable ANSI codes (plaintext output)

Todo

  • Tests
  • Replace Mercury with a readability library
  • Save article to Markdown