mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-21 05:01:30 +02:00
Webtoon ripper can now rip from all pages
This commit is contained in:
@@ -88,4 +88,16 @@ public class WebtoonsRipper extends AbstractHTMLRipper {
|
||||
cookies = resp.cookies();
|
||||
return Http.url(url).get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Document getNextPage(Document doc) throws IOException {
|
||||
// Find next page
|
||||
String nextUrl = "";
|
||||
Element elem = doc.select("a.pg_next").first();
|
||||
nextUrl = elem.attr("href");
|
||||
if (nextUrl == "") {
|
||||
throw new IOException("No more pages");
|
||||
}
|
||||
return Http.url(nextUrl).get();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user