Jsoup element without id

1

Well, I'm looking to use JSoup to grab a table from a website and show it in the application. The problem is that this table has no id. How do I get this table and display it in the app? Here is the site: link

    
asked by anonymous 01.03.2017 / 16:07

1 answer

1

With JSoup, element search does not have to be exclusively by Id. You can also do search by CSS Selectors. So:

Elements elements = document.select("#main > div > div.conteudo > table");
    
01.03.2017 / 16:14