97 |
HtmlPage page = (HtmlPage) breaker.invoke(wrapper); |
HtmlPage page = (HtmlPage) breaker.invoke(wrapper); |
98 |
|
|
99 |
String tableName = arrival == false ? "afgangtabel" : "ankomsttabel"; |
String tableName = arrival == false ? "afgangtabel" : "ankomsttabel"; |
|
|
|
|
System.out.println(uri); |
|
|
System.out.println(tableName); |
|
|
|
|
100 |
HtmlElement table = page.getElementById(tableName); |
HtmlElement table = page.getElementById(tableName); |
101 |
|
|
102 |
if (table != null) { |
if (table != null) { |
131 |
String location = fields.get(5).asText(); |
String location = fields.get(5).asText(); |
132 |
departure.setLocation(location); |
departure.setLocation(location); |
133 |
|
|
134 |
String status = fields.get(6).asText(); |
String status = fields.get(6).asText().trim(); |
135 |
departure.setStatus(status); |
departure.setStatus(status); |
136 |
|
|
137 |
String note = extractNote( fields.get(7) ); |
String note = extractNote( fields.get(7) ); |