new92 / InstaTools

🧰 A collection of tools used for automating tasks on Instagram 📱| Written in Python 🐍 | Don't forget to ⭐ the repo !
https://github.com/new92/InstaTools
MIT License
115 stars 23 forks source link

JSON Query to accounts/login/: Could not find "window._sharedData" in html response. [retrying; skip with #7

Closed axen1 closed 11 months ago

axen1 commented 1 year ago
-------------------- LOGIN -------------------- [::] Please enter your username: wordcraftedtales [::] Please enter your password: *****

JSON Query to accounts/login/: Could not find "window._sharedData" in html response. [retrying; skip with ^C] JSON Query to accounts/login/: Could not find "window._sharedData" in html response. [retrying; skip with ^C] [!] Login error ! [+] Error message ==> JSON Query to accounts/login/: Could not find "window._sharedData" in html response. [+] Exiting...

new92 commented 12 months ago

Hey @axen1 have you tried using it with another account ? If yes and still getting this error try a cooldown (don't use the script for a couple of days). And then try again. If the error persists reopen this issue.

RV7PR commented 12 months ago

@new92 Got the same error trying it out for the first time

new92 commented 11 months ago

Ok, that's a bug then. Let me try to fix it and I'll get back to you asap.

axen1 commented 11 months ago

@new92 I tried with another account but it still didn't work. By the way, where are you from?

new92 commented 11 months ago

Ok sorry to hear that, let me see what I can do. Why you asking bro ? 😅

axen1 commented 11 months ago

I do not know it came from my heart. You seem like a warm-hearted person. :)

new92 commented 11 months ago

Oh okay 😅, thank you very much ! I'm trying to be one, because there's plenty of bad people and hate in this world so even tho its small I'm making an effort to change it.

new92 commented 11 months ago

Hey @axen1 and @RV7PR and whoever else faces the same bug, to solve it, follow these steps:

  1. Download this script
  2. Login to Instagram in Firefox
  3. Execute the snippet, e.g. with python 615_import_firefox_session.py The eror should've been resolved. If you haven't pre-installed Firefox download it from here
RV7PR commented 11 months ago

@new92 I executed the script and it gave me message that the cookie was imported so all went well but when I started Tracker.py I got the same error again

new92 commented 11 months ago

@RV7PR try maybe uninstalling and reinstalling the script and let me know.

new92 commented 11 months ago

@asadilo have you tried these steps ? solution

itsfizziks commented 11 months ago

the thing is the fix is right but partial. I included an example of what needs to be done for the code to utilize the Firefox fix. I included the fix only for the Tracker.py file (for now). If you guy want to give it a try - here