How can I get the required element using cherio (or another parser)?

  • 0
    All the best, I'm trying to figure out how to parse HTM in cherio.
    There is HTML in it there is a table table with the class tListTable then tbody then after one starting from the second tr and already in it td and there the necessary data
    something 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>


    I just can't figure it out.

    Tell me please
    JavaScript Anonymous, Jul 30, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!