18

In this post is shown how to pipe curl output to lynx. How can get the same with w3m?

I mean something like:

curl https://www.google.it | w3m

I do not want to use a temporary file.

AdminBee
  • 21,637
  • 21
  • 47
  • 71

1 Answers1

30

w3m is a pager. So to force HTML interpretation of text on stdin, you need to ask for it explicitly:

curl https://www.google.it | w3m -T text/html
Stéphane Chazelas
  • 522,931
  • 91
  • 1,010
  • 1,501
  • 7
    You can also add the `-dump` flag to skip the pager and send the output to stdout or pipe it to something else. – ewatt Feb 13 '19 at 22:55