fix(rp5): fix rp5 parser
This commit is contained in:
@@ -48,7 +48,6 @@ def parse_page(page: BeautifulSoup) -> list[WeatherResponse]:
|
|||||||
cloudness_row,
|
cloudness_row,
|
||||||
precipitation_row,
|
precipitation_row,
|
||||||
temperature_row,
|
temperature_row,
|
||||||
_,
|
|
||||||
pressure_row,
|
pressure_row,
|
||||||
wind_speed_row,
|
wind_speed_row,
|
||||||
wind_gust_row,
|
wind_gust_row,
|
||||||
@@ -100,7 +99,7 @@ def parse_page(page: BeautifulSoup) -> list[WeatherResponse]:
|
|||||||
for index, cell in enumerate(wind_speed_row.select("td")[1:]):
|
for index, cell in enumerate(wind_speed_row.select("td")[1:]):
|
||||||
values[index].wind_speed = _parse_wind_speed(cell)
|
values[index].wind_speed = _parse_wind_speed(cell)
|
||||||
for index, cell in enumerate(wind_gust_row.select("td")[1:]):
|
for index, cell in enumerate(wind_gust_row.select("td")[1:]):
|
||||||
values[index].wind_speed = _parse_wind_speed(cell)
|
values[index].wind_gust = _parse_wind_speed(cell)
|
||||||
for index, cell in enumerate(wind_direction_row.select("td")[1:]):
|
for index, cell in enumerate(wind_direction_row.select("td")[1:]):
|
||||||
values[index].wind_direction = parse_wind_direction(cell.text.strip())
|
values[index].wind_direction = parse_wind_direction(cell.text.strip())
|
||||||
for index, cell in enumerate(humidity_row.select("td")[1:]):
|
for index, cell in enumerate(humidity_row.select("td")[1:]):
|
||||||
|
|||||||
Reference in New Issue
Block a user