function getTable(table, arr) {
  for (let i = 0; i < arr.length; i++) {
    let tr = document.createElement("tr");
    for (let j = 0; j < Object.values(arr[i]).length; j++) {
      let td = document.createElement("td");
      td.innerHTML = Object.values(arr[i])[j];
      tr.appendChild(td);
    }
    table.appendChild(tr);
  }
}<div class="second_section">
        <div class="container second_section">
            <div class="second_section__title title">
                <h2><strong>Программа профессиональных тренингов позволит освоить практические навыки гештальт-терапии</strong></h2>
            </div>
            <div class="second-section__title2 title_too">
                <h2>Это прекрасная возможность<br> начать психологическую <br> практику</h2>
            </div>
            <div class="second_section__nav nav-conteiner">
                <div class="nav-conteiner__list-item list-item">
                    <h2 class="nav-conteiner__title"><strong>Продолжительность курса</strong></h2>
                    <p>18 учебных модулей <br> Начало первого модуля <br> февраль 2023 года</p>
                </div>
                <div class="nav-conteiner__list-item list-item">
                    <h2 class="nav-conteiner__title"><strong>Форма обучения</strong></h2>
                    <p>Очно-заочная <br> Очная: Психологический центр “Феникс” (г.Нижний Новгород, ул. Трудовая, д.8) <br> Заочно: Онлайн встречи в Zoom</p>
                </div>
                <div class="nav-conteiner__list-item list-item">
                    <h2 class="nav-conteiner__title"><strong>Цели</strong></h2>
                    <p>Цель: Освоение метода гештальт-терапии <br> согласно мировым стандартам</p>
                </div>
                <div class="nav-conteiner__list-item list-item">
                    <h2 class="nav-conteiner__title"><strong>Задачи</strong></h2>
                    <p>Изучить необходимые методы гештальт-терапии. <br> Овладеть умениями проводить консультации в гештальт-подходе <br> Освоить практические навыки необходимые для ведения частной практики</p>
                </div>
            <div>  <!-- Тут видимо должен быть закрывающий тег -->         
            <div class="second_section__program program">
                <!-- должен быть снизу а почему то остается справа (при чем в предыдущем диве)  -->
            </div>
        </div>
    </div>Two SODIMM memory module slots
Customer accessible and upgradeable
DDR3L-1600-MHz Dual channel support
DDR3-1333-MHz Dual channel support (DDR3L-1600 downgraded to DDR3-1333)
Supports up to 8192-MB of system RAM in the following configurations:
● 8192-MB (4096-MB×2)
● 6144-MB (4096-MB×1 + 2048-MB×1)
● 4096-MB (4096-MB×1 or 2048-MB×2)
● 2048-MB (2048-MB×1)
from bs4 import BeautifulSoup
import requests
import time
base_url = 'http://gravitytales.com/novel/the-lords-empire/tle-chapter-'
last_chapter = 500
def get_html(url):
  html = requests.get(url)
  if html.status_code == 200:
    html.encoding = 'utf-8'
    return html.text
  else:
    print('Status code {0}'.format(html.status_code))
    return ''
def parse(html):
  text = ''
  soup = BeautifulSoup(html, 'lxml')
  title_tag = soup.find('title').get_text()
  title = title_tag.split('-')[1].strip()
  title = title + '\n\n'
  paragraphs = soup.find('div', class_='innerContent').find_all('p')[3:]
  for paragraph in paragraphs:
    text += paragraph.get_text() + '\n'
  return [title, text]
def write(title, text):
  with open('novel.txt', 'a') as file:
    file.write(title)
    file.write(text)
  print(title[:-2] + ' was downloaded successfully!')
def main():
  with open('novel.txt', 'w') as file:
    file.write('')
  for index in range(0, last_chapter+1):
    html = get_html(base_url + str(index))
    if html != '':
      title, chapter = parse(html)
      write(title, chapter)
    time.sleep(1)
if __name__ == '__main__':
  main()