parent
e6f41d5047
commit
2e01d63841
@ -56,8 +56,8 @@ public class CheebyRipper extends AbstractHTMLRipper {
|
|||||||
@Override
|
@Override
|
||||||
public Document getNextPage(Document doc) throws IOException {
|
public Document getNextPage(Document doc) throws IOException {
|
||||||
sleep(500);
|
sleep(500);
|
||||||
offset += 10;
|
offset += 1;
|
||||||
String url = this.url + "?limit=10&offset=" + offset;
|
String url = this.url + "?p=" + offset;
|
||||||
Document nextDoc = Http.url(url).get();
|
Document nextDoc = Http.url(url).get();
|
||||||
if (nextDoc.select("div.i a img").size() == 0) {
|
if (nextDoc.select("div.i a img").size() == 0) {
|
||||||
throw new IOException("No more images to fetch");
|
throw new IOException("No more images to fetch");
|
||||||
|
Loading…
Reference in New Issue
Block a user