New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Query to <username>/feed/: Could not find "window._sharedData" in html response. #1553
Comments
There might a update for the instagram api and the web interface, the instagam downloader extension stopped working |
Just got the same issue. First there are multiple exceptions with this error message: Then there is one exception as below: At last, instaloader complains that the profile could not be found, with the below error message: The profile that I attempted to download is clearly visible in Instagram, they probably made some changes in the HTML response. |
Hello, I'm a user of Raider (a different IG scraping program). I thought I'd hop in here to chime in since the Raider github is kind of dead. It seems they're blocking certain usernames only... I tried various usernames of mine, and some of them work, and some do not. (To clarify, the usernames of the accounts I want to download are all working. The usernames I login as are the wonky ones... sometimes they work, sometimes they don't) |
I tried an another account of mine and it downloaded, without a problem. It's probably a measure to preventing bot accounts |
They blocked 2 of my accounts a few weeks ago then I retried them today. They seem to be working again, so it appears to be a temporary measure (for now). However, they blocked more of my accounts today, though |
Same problem here, I got "Could not find "window._sharedData" in html response." error. |
The workaround is to remove the session file ( |
The problem is also discussed in #1530. |
Also discussed in #1523 |
This is what you get as a response for "good" (i.e. log in with fresh session and grab stories immediately) vs "bad" (i.e. use existing session, even for a few seconds before): |
Works but got banned within 2 times of using this workaround, be careful guys😢 |
In the DataHoarder subreddit, someone also said the Chrome extension has stopped working, so something is going on with IG... |
I decided to download 4KStogram again, which forced me to login to an account to download stories. I logged in as one of my blocked accounts, and the app was surprisingly able to download the stories, so there is definitely a workaround. |
What do you mean exactly by "banned"? Banned just from scraping (you can still log in), banned temporarily (you can't react to content) or banned completely (removed)? |
Is it possible to edit this issue title, as currently it's not mentioning what the actual issues are? |
Just got a softban, I had to reinitialize my password by SMS and got access to my account again |
Excessive logins always get your account ban or locked so it's not specific to that workaround. But yeah, be aware. |
@ekalin @fireattack @jbrre this is not a real workaround, just a coincidence due to the way Instagram releases patches. I'd advise not to burn your accounts and just wait for a real fix. This "workaround" will stop working completely within the next hours or days. |
Just checked your files. The "bad" version doesn't have the |
How "bad" is it? Like is it just an API update or is the good old login method completely broken? |
@jbrre no, I don't think login is broken. From what I've seen working on patch for other project, yes, |
I have noticed a new API endpoint |
please change the title to be more specific, thanks |
I also started having the same issue: instaloader.exceptions.QueryReturnedNotFoundException: Could not find "window._sharedData" in html response. |
entry_data is also empty if you check _sharedData. So are we going to give up? 😆 |
ty, its working now. the pull request should have been updated with your fix. |
this is weird, for me trying a non-existing profile leads to various tries ending in a 404 and finally a keyerror on fetching similar profiles as the data only contains a username but no id. Do you have a username that leads to an empty user field for me to try things out? |
|
If I delete the sessionfile then download the download easily. So it works instaloader itself, only as soon as the session file is retrieved, there is a problem that we have to look at. What makes instaloader different? |
It's not different. It happens with webpage too. It looks like that Instagram just doesn't seem to send back the same response when you firstly login. |
this really is weird... I added your fix to the pull request. Thx for helping out! |
It suddenly started working again for me. |
@quietsecret123 Is the issue the same on Raider? I have been trying to rig Raider to work similarly to how Instaloader has been fixed in this thread but haven't had luck with the older packages it uses. Npm doesn't want to install them. Does Instaloader have a way it can read everything Ive downloaded from Raider so I don't have to re-download all the accounts from scratch to switch over to Instaloader? |
patch worked for me thx. |
How I can install the patch via pip? |
Uninstall your old instaloder version. |
What does patch repository mean? |
Just use |
open cmd then write 'pip install https://github.com/twitter-79/instaloader/archive/refs/heads/master.zip --no-cache-dir' |
I think, it is the best to run this.
|
Tried this on my Ubuntu machine and it worked perfectly. UnixCro's method gave me an error. |
The Error is probably this |
This comment was marked as abuse.
This comment was marked as abuse.
Exactly the same problem:
help me please Moreover, when launched locally from the IDE, everything connects and works, but on the server it gives an error. All Python packages are the same and updated to the latest versions.
All of the above methods did not help. |
try uninstall then fresh install of instaloader |
Describe the bug
JSON Query to test/feed/: Could not find "window._sharedData" in html response. [retrying; skip with ^C]
To Reproduce
Steps to reproduce the behavior: just download anyone
Expected behavior
its supposed to work
Error messages and tracebacks
If applicable, add error messages and tracebacks to help explain your problem.
Errors or warnings occurred:
Profile test has changed its name to test.
Warning: test will be downloaded anonymously ("Profile test does not exist.
The most similar profile is: test.")
The text was updated successfully, but these errors were encountered: