def get_observations(self):
if self.empty:<EOL><INDENT>return []<EOL><DEDENT>rows = list(self.tbody)<EOL>observations = []<EOL>for row_observation, row_details in zip(rows[::<NUM_LIT:2>], rows[<NUM_LIT:1>::<NUM_LIT:2>]):<EOL><INDENT>data = {}<EOL>cells = OBSERVATION_XPATH(row_observation)<EOL>data['<STR_LIT:name>'] = _clean_cell(cells[<NUM_LIT:0>])<EOL>data['<STR_LIT:date>'] = _clean_cell(cells[<NUM_LIT:1>])<EOL>data['<STR_LIT>'] = _clean_cell(cells[<NUM_LIT:3>])<EOL>data['<STR_LIT>'] = _clean_cell(cells[<NUM_LIT:6>])<EOL>cells = DETAILS_XPATH(row_details)<EOL>data['<STR_LIT>'] = _clean_cell(cells[<NUM_LIT:0>])<EOL>data['<STR_LIT>'] = _clean_cell(cells[<NUM_LIT:3>]).replace('<STR_LIT:None>', '<STR_LIT>')<EOL>data['<STR_LIT>'] = _clean_cell(cells[<NUM_LIT:4>])<EOL>data['<STR_LIT>'] = _clean_cell(cells[<NUM_LIT:5>])<EOL>observations.append(data)<EOL><DEDENT>return observations<EOL>
Parses the HTML table into a list of dictionaries, each of which
represents a single observation.