5 ms·
What I really want is a reader view on the terminal -- something that cuts out all layout, formatting and images and shows me the raw article text in a fixed wi
by hliyan 6y ago
What I really want is a reader view on the terminal -- something that cuts out all layout, formatting and images and shows me the raw article text in a fixed with font. Ditto for comments. I've already tried the "hn" [1] command line tool, but it doesn't strip out navigation menus, heads and footers from articles. It's also a bit slow.
[1] https://github.com/donnemartin/haxor-news https://github.com/donnemartin/haxor-news
- aome510 6y ago> something that cuts out all layout, formatting and images and shows me the raw article text in a fixed with font. FYI, I have implemented a reader view for `hackernews_tui v0.6.0` [0] which seems to satisfy most of the conditions above. Judging from my experience, this reader view works quite well and can cover many use cases. [0]: https://github.com/aome510/hackernews-TUI/releases/tag/v0.6.0 https://github.com/aome510/hackernews-TUI/releases/tag/v0.6....
- aome510 6y agoExactly this! I also want the same thing but didn't really find a good way to achieve it during my first find a while ago.
- hjek 6y agoHN looks good in regular text-based browsers. I use Links[0]. [0]: http://links.twibright.com/ http://links.twibright.com/
- axiolite 6y agoThat's why I like RSS. Strip out everything but the content and use whatever UI I prefer. Newsbeuter is a good RSS readers for the terminal. Several services and open source programs like TT-RSS allow you to get the full-text instead of just a blurb. And for sites without RSS feeds, there are services that make it easy to scrape HTML pages and output an RSS feed.
- xianx 6y agoI use Newsboat and newspaper3k for that, works pretty well. Example: https://hund.tty1.se/2020/07/29/an-introduction-to-the-web-feed-client-newsboat.html https://hund.tty1.se/2020/07/29/an-introduction-to-the-web-f... You can add the HN feed with hnrss: https://hnrss.github.io/ https://hnrss.github.io/ Maybe not the best solution, but I've been using it for a couple of weeks and it works.
- aome510 6y agoI just played around with newspaper3k today, and it works really well out of the box. I plan to add support for article view reader mode with newspaper3k integration. My current approach is to create a child process with `std::Process:Command` then run a python script. Doesn't seem to be the best approach, but I guess it's the easiest one.
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]
- Seirdy 6y agoTwo projects that do this with nearly identical output: - https://github.com/eafer/rdrview https://github.com/eafer/rdrview - https://github.com/go-shiori/go-readability https://github.com/go-shiori/go-readability Pipe the filtered HTML output into your favorite textual web browser for an ideal reading experience.