From 0fa61c0b65c9ea232cdb6697507bdbcc8d6f451e Mon Sep 17 00:00:00 2001 From: MetaPrime Date: Mon, 6 Jan 2025 01:52:32 -0800 Subject: [PATCH] CoomerPartyRipper.java - can be a slow site for large downloads anyway; rate limit ourselves to avoid getting rate-limited --- .../rarchives/ripme/ripper/rippers/CoomerPartyRipper.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/CoomerPartyRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/CoomerPartyRipper.java index f990ae66..384b3174 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/CoomerPartyRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/CoomerPartyRipper.java @@ -42,11 +42,11 @@ public class CoomerPartyRipper extends AbstractJSONRipper { // Pagination is strictly 50 posts per page, per API schema. private Integer pageCount = 0; - private static final Integer postCount = 50; + private static final Integer postCount = 50; // "Service" of the page to be ripped: Onlyfans, Fansly, Candfans private final String service; - + // Username of the page to be ripped private final String user; @@ -91,7 +91,7 @@ public class CoomerPartyRipper extends AbstractJSONRipper { private JSONObject getJsonPostsForOffset(Integer offset) throws IOException { String apiUrl = String.format(POSTS_ENDPOINT, service, user, offset); - + String jsonArrayString = Http.url(apiUrl) .ignoreContentType() .response() @@ -133,6 +133,7 @@ public class CoomerPartyRipper extends AbstractJSONRipper { @Override protected void downloadURL(URL url, int index) { + sleep(5000); addURLToDownload(url, getPrefix(index)); }