goreadability icon indicating copy to clipboard operation
goreadability copied to clipboard

Release it as cli command line tool and compiled binary

Open m040601 opened this issue 6 years ago • 1 comments

hi, I saw this on the Readme,

Command Line Tool TODO

Any chance you could actualy do this and also release it as a binary on github ? Your goreadablity would make a great little portable, easy to install cli tool to combine as a filter/pipe to other tools.

  1. A a "reader mode"/"pocket mode" in the browser (Qutebrowser) An example (based on the old python-readability), https://github.com/qutebrowser/qutebrowser/blob/master/misc/userscripts/readability

  2. As a filter/pipe for other cli tools, ex, newsboat (rss reader), shell scripts, text editor (vim), cli web browsers, hs etc....

Not everyone has the entire go distribution installed or as a simple user is familiar with compiling.Besides that releasing a binary, would make it easier for others to create a package for a Linux distro, based on the binary (ex. Archlinux AUR).

Give it a url or html file or read from standard input, just dump the cleaned up html(with?without pictures?) to a file or standard output. Additionaly, you could:

  • add the option to dump it as plain text
  • add the option to dump it out to the terminal (ANSI escaped, color, bold) ready to be piped to 'less' etc.. (See also https://github.com/lunny/html2md, https://github.com/mitchellh/go-wordwrap)

IMPORTANT: dont forget UTF8 Unicode encoding and east asian languages (CJK). For some reason almost everyone who releases these html parsing things, always forgets about foreign language pages/sites.

Extremely useful in the Linux world.

PS: These guys have made something similar, but doesnt seem maintained/updated anymore, https://github.com/feeeper/newspaper/blob/readability-support/main.go

The difference is that wihle yours derives from the original Arc90/ruby, theirs seems to be derived from go-shiori/go-readability (mozilla pocket/readability port)

m040601 avatar Mar 13 '19 02:03 m040601

@m040601 Thanks for the good point. I'll let you know when this feature's done.

philipjkim avatar Mar 13 '19 02:03 philipjkim