Last night I built a new go tool to let me read websites on the command line. Readcli
readcli https://medium.com/compass-true-north/go-unit-testing-at-compass-3a7cb85ab54a
Install (on mac)
brew install trashhalo/homebrew-brews/readcli
Website Content
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.
Bubbletea
The cli interaction is controlled by an elm inspired go library bubbletea. Its be a absolute dream to work with.
Top comments (1)
Great initiative! Love the idea~~~