Want to archive Instagram posts and profiles for some reason? Then you might want to look at instaloader.
In the simplest case, after doing a pip3 install instaloader
, you can archive a profile using the command:
instaloader profile [profilename ...]
To get higher / full-resolution images, etc., you'll need to run instaloader
as a logged-in user, but if you receive the error, Fatal error: JSON Query to accounts/login/: Could not find “window._sharedData” in html response
, you might want to try the steps outlined here:
1. First download the script 615_import_firefox_session.py]
2. Login to Instagram in Firefox
3. Execute the snippet, e.g., withpython3 615_import_firefox_session.py
4. Then runinstaloader -l username [command [arguments ...]]