From 857b951956e44a76080de1255854e931c8e4fd9a Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 8 May 2018 07:28:18 -0400 Subject: [PATCH] Fixed regex --- .../com/rarchives/ripme/ripper/rippers/InstagramRipper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 2b63a44f..717aaa30 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java @@ -430,7 +430,7 @@ public class InstagramRipper extends AbstractHTMLRipper { return null; } if (!rippingTag) { - Pattern jsP = Pattern.compile("o},queryId:.([a-zA-Z0-9]+)."); + Pattern jsP = Pattern.compile("\\?n.pagination:n},queryId:.([a-zA-Z0-9]+)."); Matcher m = jsP.matcher(sb.toString()); if (m.find()) { return m.group(1); @@ -442,7 +442,7 @@ public class InstagramRipper extends AbstractHTMLRipper { return m.group(1); } } - logger.info("Could not find query_hash on " + jsFileURL); + logger.error("Could not find query_hash on " + jsFileURL); return null; }