Got getNextPage working again for tags

This commit is contained in:
cyian-1756 2018-04-10 18:28:13 -04:00
parent 54f22eef3c
commit 73478344d8

View File

@ -358,8 +358,10 @@ public class InstagramRipper extends AbstractHTMLRipper {
if (rippingTag) { if (rippingTag) {
try { try {
sleep(2500); sleep(2500);
String vars = "{\"tag_name\":\"" + tagName + "\",\"first\":4,\"after\":\"" + nextPageID + "\"}";
String ig_gis = getIGGis(vars);
toreturn = Http.url("https://www.instagram.com/graphql/query/?query_hash=" + qHash + toreturn = Http.url("https://www.instagram.com/graphql/query/?query_hash=" + qHash +
"&variables={\"tag_name\":\"" + tagName + "\",\"first\":4,\"after\":\"" + nextPageID + "\"}").cookies(cookies).ignoreContentType().get(); "&variables=" + vars).header("x-instagram-gis", ig_gis).cookies(cookies).ignoreContentType().get();
// Sleep for a while to avoid a ban // Sleep for a while to avoid a ban
logger.info(toreturn.html()); logger.info(toreturn.html());
return toreturn; return toreturn;