Last night I built a new go tool to let me read websites on the command line. Readcli
brew install trashhalo/homebrew-brews/readcli
Due to the way I am scraping website content not every url will work. I've tested it with medium.com and nytimes.com.
The algorithm is as follows:
- Use go-readbility to download a stripped down version of the website.
- Use html-to-markdown to convert the clean html to markdown.
- Use glamour to render the markdown content.
The cli interaction is controlled by an elm inspired go library bubbletea. Its be a absolute dream to work with.