Is there any relationship between these two HTML elements?

-1

I'm pulling data from a website with Jsoup but I'm not very good at html . I would like to know if there is any relationship between and lin-area-c2 and .

If there is one, I'd like to know how to use it to put them in an arrayList , for example, since the way I'm doing it first makes extract the )

In general, it extracts a "lin-area-c2" and then if after it has . lin-course-c3 "

Thank you!

Here is the link to the site.

Document document = null;

document = Jsoup.connect("http://www.dges.gov.pt/guias/indcurso.asp?letra=E").get();

for(int contador=0;contador<document.select(".lin-area-c2").size();contador++) {
    Log.d("tag",""+ document.select(".lin-area-c2").get(contador).text());
}

for(int contador=0;contador<document.select(".lin-curso-c3").size();contador++){
    Log.d("tag",""+ document.select(".lin-curso-c3").get(contador).text());
}
    
asked by anonymous 14.08.2017 / 18:48

1 answer

1
The box10 is the category of the course, the lin-curso is the line with the course data and the classes lin-curso-c1 , lin-curso-c2 , lin-curso-c3 , lin-curso-c4 are the columns with the information of the course. It assembles a table using divisors instead of using a table.

    
14.08.2017 / 19:02