


This shortcut works on photos, videos, stories, and reels!
**NOTE:** iCloud Drive is **required** for this shortcut to work
-----
**NOTE: as of version 1.55, this shortcut requires the Scriptable app to be installed. Do not change the name of the shortcut from "Instagram Media Saver" otherwise the setup may not work properly**
If you run into an error that mentions an object is null or cannot be found, you should run a script to ensure that the app is working properly. An example script can be copied from [this location](https://pastebin.com/raw/FFeGRe2d) and pasted into a new script in the scriptable app.
After you run it, the app should then work without issue to help in downloading Instagram media via the shortcut. The reason that Scriptable is needed / used now is due to the ability to store user cookies between sessions in the app. This is the reason for being able to download public and private media via the new methods implemented in the shortcut and also reason the shortcut has been reduced in action count.
-----
Upon first running of the shortcut, you will he asked to choose which storage location you'd like media saved ("iCloud Drive", "Photos", or "Don't Store, Share Only").
If you choose "iCloud Drive", photos and the
will be saved to the Shortcuts/Instagram Media Saver folder. You'll be asked if you want to copy the post text to the clipboard and if you want to save the post text.
If you choose "Photos", you will get a prompt to copy post text to clipboard.
If you choose "Don't Store, Share Only", you will be provided with a share sheet to share the photos to the standard share sheet options. You can also choose "Save Images" from there as well. (This is new as of 1.48)
To reset the settings, you can run the shortcut and be presented with the menu.

After initial setup the main menu will change and have a switch to turn the notifications option on or off easily.

-----
### Instructions for post downloading
* Find the Instagram post you want to download
* Share the post link to the Instagram Media Saver shortcut

* Select your saving location (iCloud Drive or Photos)

* You can optionally overlay the username on the photos downloaded when downloading individual posts. Upon first run, you will be asked if you want to Always, Never, or Ask Each Time to overlay the username.

* If there is more than one image or if there are images and videos
* On first run, you can choose to Always or Ask Each Time for downloading all the items
* It will prompt you for which items you want to save. The default is selection of all the items.
* Tap Done

* You will be asked on first run about copying the post text to clipboard. You can choose to Always, Never, or Ask Each Time

* Example image with rounded rectangle overlay implemented in 1.29

-----
### Instructions for Story downloads (works with private profiles)
* For public stories, you can share these directly from the app
* For private stories, you can share these from story viewing while in Safari.
* **Optionally** (new in version 1.55), you can copy the user's profile URL, then run the shortcut. You can then choose between saving the profile photo, or downloading the full story from the given user's account (this includes all story media from the user)

-----
### Instructions for Profile Photo downloads
* Go to the profile of a user you want the photo from
* Tap the three dots and copy profile URL
* Go to Shortcuts and Run Instagram Media Saver.
* You can then choose between saving the profile photo, or downloading the full story from the given user's account. The photo will download to your chosen location along with the biography from the profile.

-----
### Instructions for Multi Post downloads
* **NOTE**:You must have the **[Instagram Indexer](https://www.icloud.com/shortcuts/e45eea66afe24198b1d26e8ddba62527)** companion shortcut for this feature to work
* Use the Indexer shortcut in Safari to index multiple posts from a given user

* Run Instagram Media Saver
* Choose "Run Shortcut"
* Choose "Yes" when asked about downloading photos from the urls.txt file

* Next you are presented with a choice to download all, half, or user choice amount of the post URLs

* After choosing, the shortcut goes to work downloading the media
* If you wish to clear out the urls.txt file, you can do so from the menu that is presented when running the shortcut without input from the share sheet
-----
If you've chosen iCloud Drive or Photos as your storage location, you can see the saved media in the brief notification banner (if you chose to enable it).
-----
### Instructions for Reposting Feature (single photo only due to Instagram Shortcuts action limitation)
* Download a post's media as you normally would above
* At the end of the shortcut running, you'll be asked if you want to enable the repost feature
* On future posts (if enabled), you'll be asked if you want to repost one of the photos from the post you just downloaded
* If you choose yes, the post text will be copied to the clipboard and you'll be prompted to post on Instagram (if there is more than one photo, you'll be asked to choose one)
* You can then paste the post text into the dialog box and post the photo
-----
Shoutout to:
* ROP for MediaKit Banners and Badges used for this page also for [iOS Switches](https://routinehub.co/shortcut/4777) used in the shortcut
* D3W10 for Swing Updater E used in the shortcut
More updates will come in the future for various fixes (if needed). Watch for them in the Shortcut.
Nouveautés
Many fixes and improvements (see comments in shortcut)
Ce qu’il fait
498 actions-
Set VariableInput
-
CommentFirst check if user is signed into Instagram within Scriptable app
-
Run Script Inlinedk.simonbs.Scriptable
-
Get Dictionary Value
-
If
-
CommentUser is not logged in, trying to get the user to login now...
-
Show Alert
-
Run Script Inlinedk.simonbs.Scriptable
-
Stop This Shortcut
-
Dictionary
-
Set VariableDict
-
Set VariableSName
-
Comment1.76 - Remove quick look from save post text option 1.75 - Added a fix for /share/ links that the instagram app is generating for some users
-
Text
-
List
-
Set VariableYes No
-
Number
-
Set Variable1
-
Create Folder
-
Get File
-
If
-
Text
-
Choose from List
-
Dictionary
-
Save File
-
Set VariableSettings
-
Set VariableInitialSettings
-
Set VariableStorageLoc
-
CommentUpdate Check 🔽🔽🔽
-
Text
-
Get Contents of URLhttps://updatekit.mikebeas.com/V1
-
If
-
Get Dictionary Value
-
If
-
Text
-
Show Result
-
List
-
Choose from List
-
If
-
Replace Text
-
Expand URL
-
Replace Text
-
Open URLs
-
Stop and Output
-
CommentUpdate check 🔼🔼🔼
-
If
-
Text
-
Split Text
-
Text
-
Choose from List
-
If
-
Repeat with Each
-
Replace Text
-
Change Case
-
Get Dictionary Value
-
Text
-
Filter Files
-
Text
-
Split Text
-
Choose from List
-
If
-
Run ShortcutInstagram Media Saver
-
Stop This Shortcut
-
If
-
Match Text
-
Change Case
-
Replace Text
-
Replace Text
-
If
-
Get Images from Input
-
Save to Photo Album
-
Delete Photos
-
Get Variable
-
If
-
If
-
Text
-
If
-
Get Dictionary Value
-
Choose from List
-
Set Dictionary Value
-
Set VariableSettings
-
Save File
-
Nothing
-
Run ShortcutInstagram Media Saver
-
Stop This Shortcut
-
Nothing
-
If
-
Ask for InputWhat username to check follower stats for?
-
Set VariableUsername
-
Get Contents of URLhttps://I.Instagram.com/api/v1/users/web_profile_info/?username=…
-
Set Variablemax id
-
Set Variablemaxed
-
Repeat
-
If
-
Get Contents of URLhttps://www.instagram.com/api/v1/friendships/…/followers/?count=100&max_id=…
-
If
-
Set Variablemaxed
-
If
-
Set Variablemax id
-
Match Text
-
Combine Text
-
Text
-
Get File
-
If
-
Replace Text
-
Replace Text
-
Replace Text
-
Replace Text
-
Count
-
Count
-
Save File
-
Text
-
Wait
-
Quick Look
-
Wait
-
Stop This Shortcut
-
If
-
Get File
-
If
-
If
-
Get Contents of Folder
-
Filter Files
-
If
-
If
-
Get File
-
If
-
Choose from List
-
If
-
Delete Files
-
Run ShortcutInstagram Media Saver
-
Stop This Shortcut
-
Get File
-
If
-
Count
-
If
-
Text
-
Choose from Menu…
-
Choose from MenuYes
-
Split Text
-
Count
-
Text
-
List
-
Choose from List
-
If
-
Get Variable
-
If
-
If
-
Ask for InputWhat index should be the start? (Total:…)
-
Ask for InputWhat index should be the finish? (Start:…; Total:…)
-
Get Item from List
-
Repeat with Each
-
Run Shortcut
-
Replace Text
-
Set VariableFile
-
Save File
-
Choose from List
-
If
-
Get File
-
Delete Files
-
Stop This Shortcut
-
Choose from MenuNo
-
Set VariableAutoModeSkip
-
Get Clipboard
-
If
-
Get Variable
-
Get File
-
If
-
If
-
Set VariableAutoMode
-
Get URLs from Input
-
Replace Text
-
Set VariableInputURL
-
If
-
Show Alert…
-
Stop This Shortcut
-
If
-
Match Text
-
If
-
Set VariableNormalMode
-
Get Contents of URL…
-
Make HTML from Rich Text
-
If
-
CommentCheck if the link is for a highlight and grab the ID
-
Match Text
-
If
-
CommentIt highlight is a match, grab the content JSON from the API and process it to get the media for downloading
-
Get Item from List
-
Get Group from Matched Text
-
Get Contents of URLhttps://www.instagram.com/api/v1/feed/reels_media/?reel_ids=highlight%3A…
-
Get Dictionary Value
-
If
-
CommentTry matching the html for: (?<=media\?id\=).*?(?=\") (?<=media_id\"\:\").*?(?=\")
-
Match Text
-
Get Item from List
-
If
-
Match Text
-
Get Item from List
-
If
-
Match Text
-
If
Notes et avis
Écrire un avisAucun avis pour le moment. Sois le premier à partager ton avis !