Warm tip: This article is reproduced from stackoverflow.com, please click
bash

bash command to convert html page to a text file

发布于 2020-03-27 10:26:58

I am a beginner to linux. Would you please help me how to convert an html page to a text file. the text file will remove any images and links from the webpage. I want to use only bash commands and not html to text converting tools. As an example, i want to convert the first page google search results for "computers".

Thank you

Questioner
The Coder
Viewed
149
3,370 2016-07-20 01:52

I used python-boilerpipe and it works very well, so far...