Trying to parse a table with Jsoup
I am trying to download a scheudele (in a table) with Jsoup. This is what
I'm trying to download:
https://www.easistent.com/urniki/izpis/263/16515/0/0/1
This is my code so far:
public void getTableContents() throws IOException{
URL url = new
URL("https://www.easistent.com/urniki/izpis/263/16515/0/0/1");
Document doc = Jsoup.parse(url, 3000);
Elements table = doc.select("table[class=ednevnik-seznam_ur_teden]");
Iterator<Element> ite = table.select("").iterator();
}
How would I now download each table content? The most important ones are
not days and hours but actualy subjects. Once I get all the data I would
want to form some kind of table that would look nearly like this one. Is
it possible to do this or is the html code for this table too messy and I
should just do it manually? The problem in this case is that I need to do
this for around 20 different tables like this one.
No comments:
Post a Comment