mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-01-18 21:17:59 +01:00
Fixed imgbox ripper
This commit is contained in:
parent
8a42081f19
commit
cba82ccbe6
@ -48,9 +48,8 @@ public class ImgboxRipper extends AbstractHTMLRipper {
|
||||
public List<String> getURLsFromPage(Document doc) {
|
||||
List<String> imageURLs = new ArrayList<>();
|
||||
for (Element thumb : doc.select("div.boxed-content > a > img")) {
|
||||
String image = thumb.attr("src")
|
||||
.replaceAll("[-a-zA-Z0-9.]+s.imgbox.com",
|
||||
"i.imgbox.com");
|
||||
String image = thumb.attr("src").replaceAll("thumbs.imgbox.com", "images.imgbox.com");
|
||||
image = image.replace("_b", "_o");
|
||||
imageURLs.add(image);
|
||||
}
|
||||
return imageURLs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user