Sometimes we do not need all of the html page, but only part of the label need them, we can complete this operation by jsoup.
Official website: https: //jsoup.org/
1 Document document = Jsoup.connect(url).get(); 2 Elements elements = document.select("table"); 3 for (int i = 0 ;i<elements.size();i++){ 4 Log.d(TAG,elements.get(i).toString()); 5 }
1. You can choose the post method or get access.
2.Elements is a collection of similar list.
3.eletemt is included in the content
Look at the log: