ShareShortcuts

Download Instagram

Download any type of instagram media

pola
Dupliquer « Download Instagram »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que pola soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
18K
Enregistré
0
Actions
33
Catégorie
Social Network
Version
1.0
Langue
EN

Download any type of instagram media

Nouveautés

Version 1.0

First release

Historique des versions
1.0 18 avr. 2025

First release

Ce qu’il fait

33 actions
  1. Comment
    Download Instagram Version: 1.2 ~•~•~•~•~•~•~•~•~•~•~•~•~ - Autor: @Pola219
  2. Comment
    Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.
  3. Comment
    ~•~•~•~•~•~•~•~•~•~•~•~•~ ⬇️ Start Of Check Update ⬇️
  4. Text
  5. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  6. Get Dictionary from Input
  7. Set Variable
    Data
  8. Get Dictionary Value
  9. If
  10. Text
  11. Choose from Menu
    …
  12. Choose from Menu
    Update
  13. Open URLs
  14. Stop This Shortcut
  15. Choose from Menu
    Skip
  16. Comment
    ~•~•~•~•~•~•~•~•~•~•~•~•~ ⬆️ End Of Update Check ⬆️
  17. Comment
    Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.
  18. If
  19. URL
    https://
  20. Get Type
  21. Get Type
  22. If
  23. Replace Text
  24. URL
  25. If
  26. Run JavaScript on Web Page
  27. Get Contents of URL
    https://savegram.app/api/ajaxSearch
  28. Dictionary
  29. Base64 Encode
  30. URL Encode
  31. URL
    data:text/html;base64,…
  32. Open URLs
  33. Stop This Shortcut

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#include 'actions/web'
#define color red
#define glyph dramaMask

/*
Download Instagram 
Version: 1.2
~•~•~•~•~•~•~•~•~•~•~•~•~
- Autor: @Pola219
*/
// Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.

/*
~•~•~•~•~•~•~•~•~•~•~•~•~
⬇️ Start Of Check Update ⬇️
*/
const ContentsOfURL = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"shortcut": {
		"id": "20805",
		"module": "routinehub",
		"version": "{}"
	}
})
getDictionary(ContentsOfURL)
@Data
const DictionaryValue = getValue(@Data, "update")

if DictionaryValue ==  {
	menu  {
	item "Update":
		openURL(@Data)
		stop()
	item "Skip":
	}
}
/*
~•~•~•~•~•~•~•~•~•~•~•~•~
⬆️ End Of Update Check ⬆️
*/
// Download photos and videos from posts or stories. Works with app and Safari, on iPhone and iPad.


if ShortcutInput {
	const URL = url("https://")
	const URLType = typeOf(URL)
	const Type = typeOf(ShortcutInput)
	if Type == URLType {
		const UpdatedText = replaceText("\?.*$", "?__a=1", ShortcutInput, true)
		const URL1 = url(UpdatedText)
		if URL1 {
			const html = runJavaScriptOnWebpage("const myHeaders = new Headers();\nmyHeaders.append(\"User-Agent\", \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36\");\n\nconst requestOptions = {\n  method: \"GET\",\n  headers: myHeaders,\n  redirect: \"follow\"\n};\n\nfetch(\"{URL1}\", requestOptions)\n  .then((response) => response.text())\n  .then((result) => completion(result))\n  .catch((error) => completion(error));")
			formRequest("https://savegram.app/api/ajaxSearch", "POST", {
				"html": "{html}",
				"lang": "en",
				"q": "{ShortcutInput}",
				"t": "media"
			}, {
				"Cookie": "_ga=GA1.1.1020413314.1710559320; fpestid=5iUY1p1SW3uUcoV17Bn6CyjzeCNAyt60cPNvoEfanVOo3ydtyjAz50sz53m6xl5GltwreA; _ga_HYFL742GNR=GS1.1.1710573216.3.1.1710573227.0.0.0",
				"Origin": "https://savegram.app",
				"Referer": "https://savegram.app/en/instagram-private-download",
				"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
				"X-Requested-With": "XMLHttpRequest"
			})
			const Dictionary = {
				"data": {
					"html": "\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\u003ctitle\u003eDownload Instagram\u003c/title\u003e\u003cmeta charset=\\\"UTF-8\\\"\u003e\u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\\\"\u003e\u003cstyle\u003eul.download-box{width:100%;column-width:200px;list-style:none;margin:0;padding:0}ul.download-box img{width:100%;margin-bottom:10px;background-color:#eee;border-radius:.25rem;max-width:100%;height:auto;aspect-ratio:1;object-fit:cover}.download-items__btn a{background:#333;padding:20px 0;margin-bottom:10px;display:block;text-align:center;color:#fff;text-decoration:none;border-radius:10px;font-size:13px;font-weight:400;color:#212529;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;color:#fff;background-color:#007bff;border-color:#007bff}.download-items__btn a:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.row.back-home{display:none}body{font-family:-apple-system,BlinkMacSystemFont,\\\"Segoe UI\\\",Roboto,\\\"Helvetica Neue\\\",Arial,\\\"Noto Sans\\\",\\\"Liberation Sans\\\",sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\",\\\"Segoe UI Symbol\\\",\\\"Noto Color Emoji\\\"}select.minimal{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;margin-bottom:10px}i.icon:before{font-style:normal;font-size:20px;background:rgba(255,255,255,0.7);width:50px;height:50px;display:block;text-align:center;line-height:50px;border-radius:220px}.icon-dlvideo:before{content:\\\"▶️\\\";font-style:normal;font-size:21px;background:#fff;width:50px;height:50px;display:block;text-align:center;line-height:50px;border-radius:220px}.download-items__thumb{position:relative;display:flex;justify-content:center;align-items:center}span.format-icon{position:absolute}.icon-dlimage:before{content:\\\"🏞️\\\"}\u003c/style\u003e\u003c/head\u003e\\n\u003cbody\u003e\\n\u003cscript\u003efunction getPhotoLink(n, t) {\\n    var i = t.value;\\n    document.getElementById(\\\"photo_dl_\\\" + n).setAttribute(\\\"href\\\", i);\\n}\\n\u003c/script\u003e\\n{['data']}\u003cscript\u003edocument.querySelectorAll('img').forEach(function(img) {\\n    img.alt = \\\"SaveGram.App\\\";\\n});\\n\u003c/script\u003e\\n\u003c/body\u003e\u003c/html\u003e"
				}
			}
			base64Encode(Dictionary['data.html'])
			urlEncode()
			const URL2 = url("data:text/html;base64,{}")
			openURL(URL2)
			stop()
		}
	}
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de pola

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité