16

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
k0pernikus
  • 14,853
  • 21
  • 58
  • 79

1 Answers1

20
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 pup HTML parser instead, as pointed out here

k0pernikus
  • 14,853
  • 21
  • 58
  • 79