return event;
}
private TeamData extractTeam(Element span) {
try {
TeamData team = new TeamData();
Element teamAElem = span.previousElementSibling();
team.setName(teamAElem.textNodes().get(0).text());
Element table = span.parent().nextElementSibling();
Elements rows = table.select("tbody > tr");
team.setRiders(new ArrayList<String>());
for (int i = 0; i < rows.size(); i++) {
Element riderAElem = rows.get(i).select("td:eq(1) > a").get(0);
team.getRiders().add(riderAElem.textNodes().get(0).text());
}
return team;
} catch (Exception e) {
e.printStackTrace();
return null;