How to Pipe HTML into Lynx

curlhtmllynxpipestdin

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

Best Answer

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 Question