 <p>Your row variable is not the <code>a</code> tag, so there is no attribute <code>href</code> on it.</p> <p>Try with this:</p> <pre><code>Element table = doc.select("table.table"); Elements links = table.getElementsByTag("a"); for (Element link: links) { String url = link.attr("href"); String text = link.text(); System.out.println(text + ", " + url); } </code></pre> <p>This is pretty much extracted from the <a href="http://jsoup.org/cookbook/extracting-data/dom-navigation">JSoup documentation</a></p>