mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-06 13:56:34 +02:00
Instagram ripper no long throws an error when it can't find the qhash on single posts
This commit is contained in:
@@ -159,7 +159,8 @@ public class InstagramRipper extends AbstractJSONRipper {
|
||||
Document p = resp.parse();
|
||||
// Get the query hash so we can download the next page
|
||||
qHash = getQHash(p);
|
||||
if (qHash == null) {
|
||||
// The qHash is not needed if ripping a single post
|
||||
if (qHash == null && !url.toExternalForm().contains("/p/")) {
|
||||
throw new IOException("Unable to extract qhash from page");
|
||||
}
|
||||
return getJSONFromPage(p);
|
||||
|
Reference in New Issue
Block a user