import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.io.*; public class Proov1{ public static void main(String[] arg) throws IOException{ String aadress="http://www.tlu.ee/~jaagup/"; Document doc=Jsoup.connect(aadress).get(); Elements links=doc.select("a[abs:href]"); for(Element link:links){ System.out.println(link.attr("abs:href")); } } }