mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-07 06:16:42 +02:00
Fix Instagram ripper
The "rhx_gis" variable was removed by Instagram. It seems like we can still fetch pages without it, so I set it to an empty string. If needed, it could also be removed from the ripper (since it no longer serves any purpose). Fixes RipMeApp/ripme#1314
This commit is contained in:
@@ -243,7 +243,14 @@ public class InstagramRipper extends AbstractJSONRipper {
|
||||
|
||||
// get the rhx_gis value so we can get the next page later on
|
||||
if (rhx_gis == null) {
|
||||
rhx_gis = json.getString("rhx_gis");
|
||||
try {
|
||||
rhx_gis = json.getString("rhx_gis");
|
||||
} catch (JSONException ex) {
|
||||
// Instagram has removed this token, but ...
|
||||
LOGGER.error("Error while getting rhx_gis: " + ex.getMessage());
|
||||
//... if we set it to "", the next page can still be fetched
|
||||
rhx_gis = "";
|
||||
}
|
||||
}
|
||||
if (!url.toExternalForm().contains("/p/")) {
|
||||
JSONArray datas = new JSONArray();
|
||||
|
Reference in New Issue
Block a user