ShareShortcuts
Fork “InstaDP”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so shorctutsink gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
39K
Saved
2
Actions
47
Category
Social Network
Version
1.0
Language
EN

Download or View instagram profile picture for any user via profile Link or Username

Features:

  • Multi-Language Arabic/English
  • Get Profile Picture by URL
  • Get Profile Picture by username
  • No out source API
  • Easy To Use

This shortcut uses Lemon Updater for updates

What's New

Version 1.0

First release

Version History
1.0 Sep 16, 2022

First release

What it does

47 actions
  1. Dictionary
  2. Text
  3. Text
  4. If
  5. Dictionary
  6. If
  7. Dictionary
  8. Set Variable
    Resources
  9. Choose from Menu
    …
  10. Choose from Menu
    Resources (ByClipboard)
  11. Get Clipboard
  12. URL
  13. Set Variable
    Link
  14. Choose from Menu
    Resources (ByUsername)
  15. Ask for Input
    …
  16. Set Variable
    User
  17. URL
    https://www.instagram.com/…
  18. Set Variable
    Link
  19. Choose from Menu
    Resources (CheckUpdates)
  20. Get My Shortcuts
  21. Match Text
  22. If
  23. Run Shortcut
    Lemon Updater
  24. Stop This Shortcut
  25. If
  26. Show Alert
    InstaDP
  27. Open URLs
  28. Stop This Shortcut
  29. Show Notification
    …
  30. Make HTML from Rich Text
  31. Match Text
  32. Match Text
  33. Replace Text
  34. Replace Text
  35. Split Text
  36. Get Item from List
  37. Set Variable
    URL
  38. Get Contents of URL
    …
  39. Set Variable
    Contents
  40. Choose from Menu
    Which one do you want?
  41. Choose from Menu
    Resources (Download)
  42. Save to Photo Album
  43. Vibrate Device
  44. Show Notification
    …
  45. Choose from Menu
    Resources (View)
  46. Vibrate Device
  47. Show Result

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define mac false
#include 'actions/web'
#include 'actions/shortcuts'
#include 'actions/sharing'
#define color violet
#define glyph picture

const Dictionary = {
	"Author": "Shortcuts.ink",
	"Name": "InstaDP",
	"RH ID": "12986",
	"Version": "1.0",
	"Website": "https://shortcuts.ink"
}
const Text = "1"

if Text == "1" {
} else {
}
@Resources = {
		"ByClipboard": "من خلال الرابط المنسوخ",
		"ByUsername": "من خلال اسم المستخدم",
		"CheckUpdates": "التحقق من وجود تحديثات",
		"Done": "تم حفظ الصوره",
		"Download": "تحميل الصوره",
		"EnterUsername": "يرجى ادخال اسم المستخدم",
		"FirstMessage": "كيف تريد تحميل الصوره",
		"LemonAlert": "يرجى تنصيب الاختصار Lemon Updater من اجل التحقق من وجود تحديثات",
		"View": "عرض سريع",
		"Working": "يرجى الانتظار…"
	}

menu @Resources['FirstMessage'] {
item @Resources['ByClipboard']:
	const Clipboard = getClipboard()
	url(Clipboard)
	@Link
item @Resources['ByUsername']:
	prompt(@Resources['EnterUsername'])
	@User
	url("https://www.instagram.com/{@User}")
	@Link
item @Resources['CheckUpdates']:
	getShortcuts()
	const Matches = containsText(, "Lemon Updater")
	if Matches {
		run("Lemon Updater", Dictionary)
		stop()
	} else {
		alert(@Resources['LemonAlert'], "InstaDP")
		openURL("https://routinehub.co/shortcut/11173/")
		stop()
	}
}
showNotification(@Resources['Working'], "🌀 Please Wait 🌀")
makeHTML(@Link)
containsText(, "(\"profile_pic_url\").*(\",)")
containsText(, "\"http.+?\"")
replaceText("\"", "")
const UpdatedText = replaceText("\", "")
const SplitText = splitText(UpdatedText)
getFirstItem(SplitText)
@URL
downloadURL(@URL)
@Contents

menu "Which one do you want?" {
item @Resources['Download']:
	const SavedPhotoMedia = savePhoto(@Contents)
	vibrate()
	showNotification(@Resources['Done'], "✅ Download Completed ✅", SavedPhotoMedia)
item @Resources['View']:
	vibrate()
	show(@Contents)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by shorctutsink

See All

You Might Also Like

See All
Advertisement