Я просматриваю список точек данных, собранных в результате анализа последовательности доступных парковочных мест с использованием python. Я экспортировал результаты (данные за 5 дней) в виде CSV и перевел их в таблицу HTML.
Я пытался перебрать данные, от самых старых до самых последних, показывая время и доступные места,
Поскольку это будет на веб-странице, я хотел бы показывать только один результат за раз, переходя к следующему результату каждые 5 секунд (для демонстрационных целей).
У меня естьпытался использовать javascript для реализации этого, но не смог завершить то, что я хочу.
Любая помощь очень ценится!
for (let row of mytab1.rows)
{
for(let cell of row.cells)
{
console.log(cell.innerText)
}
}
<table id="mytab1">
<thead><tr><th title="Field #1">year</th>
<th title="Field #2">month</th>
<th title="Field #3">day</th>
<th title="Field #4">hour</th>
<th title="Field #5">minute</th>
<th title="Field #6">availability</th>
</tr></thead>
<tbody><tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">07</td>
<td align="right">09</td>
<td align="right">29</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">07</td>
<td align="right">39</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">08</td>
<td align="right">09</td>
<td align="right">21</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">08</td>
<td align="right">39</td>
<td align="right">18</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">09</td>
<td align="right">09</td>
<td align="right">14</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">09</td>
<td align="right">39</td>
<td align="right">3</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">09</td>
<td align="right">5</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">39</td>
<td align="right">6</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">11</td>
<td align="right">09</td>
<td align="right">4</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">11</td>
<td align="right">39</td>
<td align="right">5</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">12</td>
<td align="right">09</td>
<td align="right">4</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">12</td>
<td align="right">39</td>
<td align="right">5</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">13</td>
<td align="right">09</td>
<td align="right">9</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">13</td>
<td align="right">39</td>
<td align="right">10</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">14</td>
<td align="right">09</td>
<td align="right">13</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">14</td>
<td align="right">39</td>
<td align="right">9</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">15</td>
<td align="right">09</td>
<td align="right">8</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">15</td>
<td align="right">39</td>
<td align="right">7</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">16</td>
<td align="right">09</td>
<td align="right">12</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">16</td>
<td align="right">39</td>
<td align="right">14</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">09</td>
<td align="right">18</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">07</td>
<td align="right">10</td>
<td align="right">29</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">07</td>
<td align="right">40</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">08</td>
<td align="right">10</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">08</td>
<td align="right">40</td>
<td align="right">22</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">09</td>
<td align="right">10</td>
<td align="right">28</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">09</td>
<td align="right">40</td>
<td align="right">28</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">10</td>
<td align="right">10</td>
<td align="right">28</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">10</td>
<td align="right">40</td>
<td align="right">30</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">11</td>
<td align="right">10</td>
<td align="right">26</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">11</td>
<td align="right">40</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">30</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">12</td>
<td align="right">40</td>
<td align="right">31</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">13</td>
<td align="right">10</td>
<td align="right">30</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">13</td>
<td align="right">40</td>
<td align="right">31</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">14</td>
<td align="right">10</td>
<td align="right">28</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">14</td>
<td align="right">40</td>
<td align="right">29</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">15</td>
<td align="right">10</td>
<td align="right">24</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">15</td>
<td align="right">40</td>
<td align="right">26</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">16</td>
<td align="right">10</td>
<td align="right">30</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">22</td>
<td align="right">16</td>
<td align="right">40</td>
<td align="right">31</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">07</td>
<td align="right">10</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">07</td>
<td align="right">40</td>
<td align="right">29</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">08</td>
<td align="right">10</td>
<td align="right">25</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">08</td>
<td align="right">40</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">09</td>
<td align="right">10</td>
<td align="right">16</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">09</td>
<td align="right">40</td>
<td align="right">4</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">10</td>
<td align="right">10</td>
<td align="right">3</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">10</td>
<td align="right">40</td>
<td align="right">3</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">11</td>
<td align="right">10</td>
<td align="right">5</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">11</td>
<td align="right">40</td>
<td align="right">5</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">4</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">12</td>
<td align="right">40</td>
<td align="right">5</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">13</td>
<td align="right">10</td>
<td align="right">8</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">13</td>
<td align="right">40</td>
<td align="right">8</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">14</td>
<td align="right">10</td>
<td align="right">10</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">14</td>
<td align="right">40</td>
<td align="right">8</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">15</td>
<td align="right">10</td>
<td align="right">7</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">15</td>
<td align="right">40</td>
<td align="right">8</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">16</td>
<td align="right">10</td>
<td align="right">10</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">11</td>
<td align="right">27</td>
<td align="right">16</td>
<td align="right">40</td>
<td align="right">14</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">07</td>
<td align="right">41</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">08</td>
<td align="right">11</td>
<td align="right">27</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">08</td>
<td align="right">41</td>
<td align="right">17</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">09</td>
<td align="right">11</td>
<td align="right">17</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">09</td>
<td align="right">41</td>
<td align="right">4</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">10</td>
<td align="right">11</td>
<td align="right">2</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">10</td>
<td align="right">41</td>
<td align="right">5</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">11</td>
<td align="right">11</td>
<td align="right">1</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">11</td>
<td align="right">41</td>
<td align="right">2</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">12</td>
<td align="right">11</td>
<td align="right">2</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">12</td>
<td align="right">41</td>
<td align="right">2</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">13</td>
<td align="right">11</td>
<td align="right">7</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">13</td>
<td align="right">41</td>
<td align="right">10</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">14</td>
<td align="right">11</td>
<td align="right">9</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">14</td>
<td align="right">41</td>
<td align="right">11</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">15</td>
<td align="right">12</td>
<td align="right">10</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">15</td>
<td align="right">41</td>
<td align="right">7</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">16</td>
<td align="right">11</td>
<td align="right">11</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">10</td>
<td align="right">16</td>
<td align="right">41</td>
<td align="right">10</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">07</td>
<td align="right">48</td>
<td align="right">26</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">08</td>
<td align="right">18</td>
<td align="right">26</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">08</td>
<td align="right">48</td>
<td align="right">19</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">09</td>
<td align="right">18</td>
<td align="right">20</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">09</td>
<td align="right">48</td>
<td align="right">10</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">10</td>
<td align="right">18</td>
<td align="right">4</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">10</td>
<td align="right">48</td>
<td align="right">2</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">11</td>
<td align="right">18</td>
<td align="right">2</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">11</td>
<td align="right">48</td>
<td align="right">1</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">12</td>
<td align="right">18</td>
<td align="right">1</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">12</td>
<td align="right">48</td>
<td align="right">4</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">13</td>
<td align="right">18</td>
<td align="right">7</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">13</td>
<td align="right">48</td>
<td align="right">12</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">14</td>
<td align="right">18</td>
<td align="right">12</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">14</td>
<td align="right">48</td>
<td align="right">6</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">15</td>
<td align="right">18</td>
<td align="right">8</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">15</td>
<td align="right">48</td>
<td align="right">11</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">16</td>
<td align="right">18</td>
<td align="right">12</td>
</tr>
<tr>
<td align="right">2015</td>
<td align="right">12</td>
<td align="right">17</td>
<td align="right">16</td>
<td align="right">48</td>
<td align="right">13</td>
</tr>
</tbody></table>