From 2e5f8a99b991b624c550c6362ae62940b7e6976f Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Wed, 22 Nov 2017 18:28:00 -0500 Subject: [PATCH] Instagram ripper can now downloads slideshows when ripping user profiles --- .../ripme/ripper/rippers/InstagramRipper.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 337b658d..778a1a0d 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java @@ -212,7 +212,19 @@ public class InstagramRipper extends AbstractHTMLRipper { Long epoch = data.getLong("date"); Instant instant = Instant.ofEpochSecond(epoch); String image_date = DateTimeFormatter.ofPattern("yyyy_MM_dd_hh:mm_").format(ZonedDateTime.ofInstant(instant, ZoneOffset.UTC)); - + if (data.getString("__typename").equals("GraphSidecar")) { + try { + Document slideShowDoc = Http.url(new URL ("https://www.instagram.com/p/" + data.getString("code"))).get(); + List toAdd = getPostsFromSinglePage(slideShowDoc); + for (int slideShowInt=0; slideShowInt