This is probably dumb question, but I can't really figure it out. I'm trying to parse html output from page: http://meteo.uwb.edu.pl/
So basically I need to extract values from table, from left side (blue text) as keys(headers) and from right side (brown text) as values. Additionaly, header labels ("Aktualna pogoda/Weather conditions: ")
My intention is to get html table from html output and then parse its row, but I can't figure it out, because html output is rather complicated. I'm starting from it:
doc = Jsoup.connect("http://meteo.uwb.edu.pl/").get();
Elements tables = doc.select("table");
for (Element row : table.select("tr"))
{
Elements tds = row.select("td:not([rowspan])");
System.out.println(tds.get(0).text() + "->" + tds.get(1).text());
}
But still my result is a mess. Do you have any ideas how to parse it correctly?