4 ms·
After seeing the CNN one and now this, it makes me want to create a generalized service to turn any site into TXT format with the html2text [0] golang package.
by jaytaylor 9y ago
After seeing the CNN one and now this, it makes me want to create a generalized service to turn any site into TXT format with the html2text [0] golang package.
Will submit to Show HN if I get enough round toits ;)
[0] https://github.com/jaytaylor/html2text https://github.com/jaytaylor/html2text
- astronautjones 9y agohere's hoping!
- evantahler 9y agoI bet you can use one of the classic text “browsers”, like Lynx, and serve up that output... ...Runs to download Lynx and rediscover the past!
- l1n 9y agoelinks -dump is my poison of choice :)
- KGIII 9y agoOn a tablet, I sometimes make use of this site: https://www.textise.net/ https://www.textise.net/ It comes in pretty handy sometimes. I'm absolutely not affiliated, just a happy user.
- fifty_something 9y agoThank you for that. A very useful website.
- rmrfrmrf 9y agoMost browsers already have a “reader view”.
- jaytaylor 9y agoHere is the first pass; I still want to make it fancier so that links are clickable, but for a quick first stab I'm pleasantly surprised with the output quality: http://txt.gigawatt.io/ http://txt.gigawatt.io/ <-- add URL here at the end (GET parameters not yet supported) Examples: http://txt.gigawatt.io/jaytaylor.com http://txt.gigawatt.io/jaytaylor.com http://txt.gigawatt.io/http://www.cnn.com/2017/09/26/politics/senate-intelligence-committee-russia-facebook-ads/index.html http://txt.gigawatt.io/http://www.cnn.com/2017/09/26/politic... Source code: https://github.com/jaytaylor/txt-web https://github.com/jaytaylor/txt-web
- xena 9y agoI get mojibake when looking at my personal site: http://txt.gigawatt.io/christine.website/blog/voiding-the-interview-2017-04-16 http://txt.gigawatt.io/christine.website/blog/voiding-the-in...
- jaytaylor 9y agoYes, that'll be fixed when I move to a text-based HTML output instead of raw plaintext. Thanks for the feedback and for trying it out!