def get_class_periods_no_json(i, soup):
    """Gets the dates of the first and last lessons of a certain class for courses that do not use a JSON timetable

    As of 2018-11-13 they are saved as the content of the first <p> tag inside a <div> with id equal to panel{index}
    Since a class can last two semesters with winter break in between, it returns an array
    """
    periods = []
    for period in soup.find("div", id="panel{}".format(i)).find_all("p"):
        periods.append(period.contents[0].split("\n"))
    return periods