3 ms·
nice! any way to make it work in Lynx/Elinks?
by sogen 7y ago
nice! any way to make it work in Lynx/Elinks?
- dredmorbius 7y agolynx will read direct from stdin. <command> | lynx --force-html -stdin
- sogen 7y agothanks! it worked curl https://www.washingtonpost.com/outlook/the-accidental-book-review-that-made-jack-kerouac-famous/2019/12/13/23e94230-04b3-11ea-b17d-8b867891d39d_story.html\?outputType\=amp |tr -cd '\11\12\15\40-\176' |sed 's/</\n</g' | sed -n '/./{/<p class=.font--body/,/<\/p>/p;}' | lynx --force-html -stdin
- 3xblah 7y agoThere is little need for this if one is using a text-only browser such as links/elinks that does not process Javascript or CSS. AMP look great in links/elinks, without any filtering. This is for folks who do not use text-only browsers and prefer to leave Javascript enabled.