From dfab4f6f34e20c005e294292c7eb7899b7db6de5 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Wed, 8 Nov 2017 00:19:55 -0500 Subject: [PATCH] removed test case for private account --- .../com/rarchives/ripme/ripper/rippers/InstagramRipper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java index 56730a10..5da394f2 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java @@ -76,8 +76,6 @@ public class InstagramRipper extends AbstractJSONRipper { try { Document firstPage = Http.url(url).get(); for (Element script : firstPage.select("script[type=text/javascript]")) { - logger.info("Found script"); - if (script.data().contains("window._sharedData = ")) { jsonText = script.data().replaceAll("window._sharedData = ", ""); jsonText = jsonText.replaceAll("};", "}"); @@ -160,7 +158,7 @@ public class InstagramRipper extends AbstractJSONRipper { break; } } - if (!nextPageID.equals("")) { + if (!nextPageID.equals("") && !isThisATest()) { try { // Sleep for a while to avoid a ban sleep(2500);