Answer the question
In order to leave comments, you need to log in
How can you parse an html page in bash?
Good afternoon, please tell me, I cycle through the list of URLs whose contents (html source code) I load.
The task is such that you need to pull out a certain piece of text that is in a certain container, for example
<div class="text-container">
<p>Нужный некий параграф</p>
<p>Снова нужный некий параграф</p>
<aside>Не нужный контейнер</aside>
<div>Снова не нужный контейнер</div>
<p>Опять нужный параграф</p>
</div>
<p>Нужный некий параграф</p>
<p>Снова нужный некий параграф</p>
<p>Опять нужный параграф</p>
Answer the question
In order to leave comments, you need to log in
1. wget curl + sed awk grep option
2. given that you are asking such a simple question, this
https://chrome.google.com/webstore/detail/web-scra...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question