1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-09 15:26:53 +02:00

Merge pull request #524 from cyian-1756/ig-nextpage-fix

Instagram ripper no longer throws a 400 error when getting new pages
This commit is contained in:
cyian-1756
2018-04-19 05:41:44 -04:00
committed by GitHub

View File

@@ -374,7 +374,7 @@ public class InstagramRipper extends AbstractHTMLRipper {
try {
// Sleep for a while to avoid a ban
sleep(2500);
String vars = "{\"id\":\"" + userID + "\",\"first\":100,\"after\":\"" + nextPageID + "\"}";
String vars = "{\"id\":\"" + userID + "\",\"first\":50,\"after\":\"" + nextPageID + "\"}";
String ig_gis = getIGGis(vars);
logger.info(ig_gis);
toreturn = Http.url("https://www.instagram.com/graphql/query/?query_hash=" + qHash + "&variables=" + vars