It is necessary to parse the page and take the train schedule from there. Jsoup does not fit, I do not know why, but it refuses to parse the page and gives an error
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
Code:
Document doc2; doc2 = Jsoup.connect("http://www.tutu.ru/rasp.php?st1=16503&st2=17003&date=today").get(); Element table2=doc2.select("table.schedule_table_classic").get(0);
Explain to me somebody, whether it is XML and how it is possible to extract the schedule.