mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-21 13:11:27 +02:00
Merge pull request #1743 from xSnowx34/master
Pawoo no longer has a custom theme
This commit is contained in:
@@ -23,16 +23,4 @@ public class PawooRipper extends MastodonRipper {
|
|||||||
return "pawoo.net";
|
return "pawoo.net";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
// Pawoo uses a custom theme that has different navigation links
|
|
||||||
public Document getNextPage(Document doc) throws IOException {
|
|
||||||
Elements hrefs = doc.select(".pagination a[rel=\"next\"]");
|
|
||||||
if (hrefs.isEmpty()) {
|
|
||||||
throw new IOException("No more pages");
|
|
||||||
}
|
|
||||||
String nextUrl = hrefs.last().attr("href");
|
|
||||||
sleep(500);
|
|
||||||
return Http.url(nextUrl).get();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user