Loading files into folder and read <li> tag content

Loading files into folder and read <li> tag content

Hello experts,

I'd like to know How I can import list from other files:
  1. Files_to_list
  2. ├── list_files.html
  3. ├── list_1.html
  4. ├── list_2.html
  5. ├── list_3.html


  6. _______________________________
  7. Structure of list_1.html
  8. _______________________________

  9. <ul class="list-content">
  10.    <li class="article-item">
  11.       <div class="text-container">
  12.          <div class="article-status"><span class="article-status-label">Publicado</span></div>
  13.          <div class="article-title">Você costuma sonhar com fantasmas? Você está desconectado, entenda aqui</div>
  14.          <div class="footer">
  15.             <div class="article-info">
  16.                <span class="article-info-item comments">0 comentários</span>
  17.                <span class="article-info-item">368 recomendações</span>
  18.                <span class="article-info-item">9 cliques</span>
  19.                <span class="article-info-item">2018-03-12 </span></div>
  20.          </div>
  21.       </div>
  22.    </li>
  23.    <li class="article-item">
  24.       <div class="text-container">
  25.          <div class="article-status"><span class="article-status-label">Publicado</span></div>
  26.          <div class="article-title">Bom dia Aquário, sua previsão do amor&amp;sexo para Seg e Ter (13.03)</div>
  27.          <div class="footer">
  28.             <div class="article-info"><span class="article-info-item comments">0 comentários</span><span class="article-info-item">275 recomendações</span><span class="article-info-item">22 cliques</span><span class="article-info-item">2018-03-12 </span></div>
  29.          </div>
  30.       </div>
  31.    </li>
  32. </ul>

  33. _______________________________
  34. Structure of list_files.html
  35. _______________________________

  36. <!DOCTYPE html>
  37. <html lang="pt">
  38. <head>
  39.   <title>Lista de Posts</title>
  40.   <meta charset="utf-8">
  41.   <meta name="viewport" content="width=device-width, initial-scale=1">
  42.   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  43.   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  44.   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

  45.         <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
  46.         <script type="text/javascript">

  47.         $(document).ready(function() {

  48.           var $table = $(".article-item").length;
  49.           //alert('Tulio o total é: '+$table);
  50.           var i= 1;
  51.           var $status, $titulo, $comments, $items, $item1,$item2,$item3;
  52.           
  53.               $('.article-item').each(function(){
  54.                 //$status = $(this).text();
  55.                 $status = $(this).find('.article-status-label').text();
  56.                 $titulo = $(this).find('.article-title').text();

  57.                 $items = $(this).find('.article-info-item').text().split(' ');
  58.                 $comments = $items[0].replace(/[^0-9]/g, '');
  59.                 $item1 = $items[1].replace(/[^0-9]/g, '');
  60.                 $item2 = $items[2].replace(/[^0-9]/g, '');
  61.                 $item3 = $items[3].replace(/[^0-9]/g, '');

  62.                 $('#myTable').append('<tr id='+i+'><td>'+i+'</td><td>'+$status+'</td><td>'+$titulo+'</td><td>'+$comments+'</td><td>'+$item1+'</td><td>'+$item2+'</td><td>'+$item3+'</td></tr>');
  63.                 i++;
  64.               });

  65.         });



  66.         </script>
  67.     <style type="text/css">
  68.         ul{
  69.             display:none;
  70.         }
  71.     </style>

  72.     </head>
  73.     <body>

  74. <table id="myTable" class="table">
  75.   <tbody>
  76.   <tr>
  77.       <td>ID</td>
  78.       <td>Status</td>
  79.       <td>Titulo</td>
  80.       <td>Comentarios</td>
  81.       <td>Recomendações</td>
  82.       <td>Clicks</td>
  83.       <td>data</td>
  84.   </tr>
  85.   </tbody>
  86. </table>

  87. <!-- ADD HERE -->




  88. _______________________________
  89. Result of list_files.html
  90. _______________________________

  91. 4 rows in set (0.00 sec) - [Button Copy To Clipboard]
  92. +------+--------+----------------------+------------------------------------+---------------------------+------------------+-------------------+
  93. | ID   | File   | article-status-label | article-title | article-info-item comments| article-info-item| article-info-item |
  94. +------+--------+----------------------+------------------------------------+---------------------------+------------------+-------------------+
  95. | 1    | list_1 | Publicado            | Você costuma sonhar com fantasmas? | 10              | 9                | 368               |
  96. | 2    | list_1 | Publicado            | Title test 123     | 5              | 12               | 123               |
  97. | 3    | list_2 | Cancelado            | Title test 456    | 196              | 32               | 94                |
  98. | 4    | list_3 | Cancelado            | Title test 789 | 23 | 87               | 12                |
  99. +------+--------+----------------------+------------------------------------+---------------------------+------------------+-------------------+