throw new RuntimeException("Failed to get page: " + statusCode);
}
String response = method.getResponseBodyAsString();
HtmlCleaner html = new HtmlCleaner();
TagNode content = html.clean(response).findElementByAttValue("id", "content", true, false);
Object[] rows = content.evaluateXPath("table/tbody/tr[@id]");
for (Object row: rows) {
if (!(row instanceof TagNode)) {
continue;
}
TagNode rowNode = (TagNode) row;