### Question:
ExtractingData { public void extractDataByDOM() throws IOException{ Document doc = Jsoup.connect("https: Element lg = doc.getElementById("lg"); logger.info("getElementById lg = {}", lg); Elements links = doc.getElementsByTag("a"); for (Element link : links) { String linkHref = link.attr("href"); String linkText = link.text(); logger.info("linkHref={}, linkText={}",linkHref, linkText); } }  void extractDataByDOM(); void extractDataByCSSOrJqueryLikeSelectorSyntax(); void extractAttributesTextAndHTML();  }### Answer:
@Test public void extractDataByDOM() throws IOException{ extractingData.extractDataByDOM(); }