import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.io.IOException; public class JsoupSample { public static void main(String[] args) throws IOException { Document doc = Jsoup.connect("https://stwww.eng.kagawa-u.ac.jp/Cur/").get(); System.out.println(doc.title()); Elements anchors = doc.select("a"); for (Element anchor : anchors) { System.out.printf("%s\n\t%s\n", anchor.absUrl("href"), anchor.html()); } } }