V
V
Vitaly2020-11-17 17:17:17
JavaScript
Vitaly, 2020-11-17 17:17:17

How to get the required element with the help of cherio (or another parser)?

Hello everyone, I'm trying to figure out HTM parsing in cherio.
There is HTML in it there is a table table with the tListTable class , then tbody, then after one starting from the second tr and already in it td and there the necessary data
like this:

<table width="100%" border="0" align="center" cellspacing="1" class="tListTable">
  <tbody>
      <tr>Не нужний</tr>
      <tr>Не нужний</tr>
      <tr onmouseover="this.bgColor='#ECECEC';" onmouseout="this.bgColor='#F6F6F6';" bgcolor="#F6F6F6">
             <td  class="row_3d">
                   .........                                                   
                 <strong> Нужные данные. </strong>
                 ........
             </td>
      </tr>

<tr>Не нужний</tr>
      <tr>Не нужний</tr>
      <tr onmouseover="this.bgColor='#ECECEC';" onmouseout="this.bgColor='#F6F6F6';" bgcolor="#F6F6F6">
             <td  class="row_3d">
                   .........                                                   
                 <strong> Нужные данные. </strong>
                 ........
             </td>
      </tr>


<tr>Не нужний</tr>
      <tr>Не нужний</tr>
      <tr onmouseover="this.bgColor='#ECECEC';" onmouseout="this.bgColor='#F6F6F6';" bgcolor="#F6F6F6">
             <td  class="row_3d">
                   .........                                                   
                 <strong> Нужные данные. </strong>
                 ........
             </td>
      </tr>

<tr>Не нужний</tr>
      <tr>Не нужний</tr>
      <tr onmouseover="this.bgColor='#ECECEC';" onmouseout="this.bgColor='#F6F6F6';" bgcolor="#F6F6F6">
             <td  class="row_3d">
                   .........                                                   
                 <strong> Нужные данные. </strong>
                 ........
             </td>
      </tr>

  </tbody>

</table>


Something I can't figure out

please tell me

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question