How to pipe html into w3m

curlw3m

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

not:

curl https://www.google.it someFile.html && lynx someFile.html

Best Answer

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
Related Question