4 ms·
Related (maybe) but tangential, does anyone know of a good web to text converter? Back in the day you used to just use Lynx, is that still the way or has it be
by carapace 6y ago
Related (maybe) but tangential, does anyone know of a good web to text converter? Back in the day you used to just use Lynx, is that still the way or has it been surpassed?
- tomsmeding 6y agoThere is w3m, which also supports css and images, if your terminal is cooperative.
- input_sh 6y agoI personally use postlight/mercury-parser[0] to convert articles to Markdown files, a small script to add extracted metadata (like author, featured image, original link, date it was scraped) to the top of a Markdown file, and put those Markdown files within Hugo for a DYI Pocket alternative. You can use the --format flag to pick between Markdown/text/HTML output, so it should serve your purpose. If anyone here has looked for a reader view on Chrome, odds are you've probably stumbled upon Mercury Reader[1]. This is what powers it. [0] https://github.com/postlight/mercury-parser/ https://github.com/postlight/mercury-parser/ [1] https://chrome.google.com/webstore/detail/mercury-reader/oknpjjbmpnndlpmnhmekjpocelpnlfdi https://chrome.google.com/webstore/detail/mercury-reader/okn...
- quickthrower2 6y agoI’ve been using this programmatically https://www.npmjs.com/package/html-to-text https://www.npmjs.com/package/html-to-text not sure if it can be run from command line but it’s be easy enough to write a wrapper. Also I reckon pandoc is worth a try.
- k1m 6y agoCheck out https://txtify.it https://txtify.it
- efreak 6y agoAny of the popular text-mode browser will do it, afaik (links, lynx, w3m) since it's already pretty much part of their functionality. Calibre might be able to do it, as well as exporting many other formats.
- pabs3 6y agoPandoc can convert HTML to Markdown and other text formats: https://pandoc.org/ https://pandoc.org/