How to pipe html into lynx?
curl www.google.de | lynx -stdin
as man lynx
shows:
-stdin read the startfile from standard input (UNIX only).
As an alternative you could also ditch lynx and use pub instead, as pointed out here
Related videos on Youtube
k0pernikus
I am Philipp Kretzschmar, a backend developer from Hamburg working at Demvsystem. You can find me on github. Or twitter. My main weapons of choice are: php TypeScript (I don't want to write plain JavaScript anymore) and nodejs I play around with: Java python rust I used to write some scala, but for now I don't want to go there anymore. I feel most comfortable on a unix-like system featuring a powerful bash. (This excludes MacOS.) I love to code within JetBrains's flavored IDEs, e.g. IntelliJ, PhpStorm, WebStorm and using the IdeaVim plugin and having a docker-compose stack to develop on.
Updated on September 18, 2022Comments
-
k0pernikus over 1 year
I am testing some ajax call from the console. I like get rid of the meta-information noise that is html markup and just read the content, hence I like to pipe it into a terminal browser, e.g. lynx.
Yet:
curl www.google.de | lynx
just opens a new instance of lynx.
I don't want to:
curl www.google.de > someFile.html && lynx someFile.html