Refine search
@Override public Page convert(ResponseBody responseBody) throws IOException { Document document = Jsoup.parse(responseBody.string()); List<String> links = new ArrayList<>(); for (Element element : document.select("a[href]")) { links.add(element.attr("href")); } return new Page(document.title(), Collections.unmodifiableList(links)); } }
@Override public List<String> getURLsFromPage(Document doc) { List<String> result = new ArrayList<>(); for (Element el : doc.select("div.single-post > div.gallery > dl > dt > a > img")) { String imageSource = el.attr("data-lazy-src"); // We remove the .md from images so we download the full size image // not the thumbnail ones imageSource = imageSource.replaceAll("-\\d\\d\\dx\\d\\d\\d", ""); result.add(imageSource); } return result; }
@Override public List<String> getURLsFromPage(Document doc) { List<String> result = new ArrayList<>(); for (Element el : doc.select("a.image-container > img")) { String imageSource = el.attr("src"); // We remove the .md from images so we download the full size image // not the medium ones imageSource = imageSource.replace(".md", ""); result.add(imageSource); } return result; }
@Override public List<String> getURLsFromPage(Document doc) { List<String> imageURLs = new ArrayList<>(); Elements thumbs = doc.select("img.thumbnail"); for (Element thumb : thumbs) { String link = thumb.attr("src").replaceAll("thumbs/th_", ""); String imgSrc = "http://nude-gals.com/" + link; imageURLs.add(imgSrc); } return imageURLs; }
@Override public List<String> getURLsFromPage(Document doc) { List<String> result = new ArrayList<String>(); for (Element el : doc.select("div.block-content > div > div.img-container > a > img.img-responsive")) { String imageURL = "https:" + el.attr("src"); imageURL = imageURL.replace("hentaicdn.com", "static.hentaicdn.com"); imageURL = imageURL.replace("thumbnails/", ""); imageURL = imageURL.replace("tmb", ""); result.add(imageURL); } return result; }
@Override public List<String> getURLsFromPage(Document doc) { List<String> result = new ArrayList<>(); for (Element el : doc.select("img.thumbnail")) { String imageSource = el.attr("src"); imageSource = imageSource.replaceAll("_data/i", ""); imageSource = imageSource.replaceAll("-\\w\\w_\\w\\d+x\\d+", ""); result.add("https://theyiffgallery.com" + imageSource); } return result; }
@Override public List<String> getURLsFromPage(Document page) { List<String> imageURLs = new ArrayList<>(); for (Element thumb : page.select("div.item.asset img")) { String image = thumb.attr("src"); image = image .replaceAll("/medium/", "/large/") .replaceAll("/small/", "/large/"); imageURLs.add(image); } return imageURLs; }