104105106107108109110111112113
Set<PageURL> urls = new HashSet<>(); Elements elements = doc.select(query); for (Element src : elements) { if (src.attr(attributeKey).isEmpty()) continue; urls.add(new PageURL(src.attr(attributeKey), url)); } return urls; }