ShareShortcuts

StoryTime 📨

StoryTime 📨 Download Instagram stories to your iOS camera roll Setup 1

oliver
Fork “StoryTime 📨”

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 oliver 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
65K
Saved
0
Actions
155
Category
Social Network
Version
2.1
Language
DE

Preview

StoryTime 📨

Download Instagram stories to your iOS camera roll

Setup

  1. Create a photo album called StoryTime
  2. Edit the profiles list
  3. Hit run 🥳

Features

  • prepend profile pic to all downloaded stories ✅
  • show progress when checking a profile ✅
  • show stats after a complete download ✅
  • split profile downloads by calling StoryTime 📨 with a list of profiles ✅

What's New

Version 2.1

Improved error handling

Version History
2.1 Nov 23, 2019

Improved error handling

2.1 Nov 23, 2019

Improved error handling

2.1 Nov 23, 2019

Improved error handling

2.1 Nov 23, 2019

Improved error handling

2.1 Nov 23, 2019

Improved error handling

2.0 Nov 21, 2019

Improved configuration support, profiles, peak / preview, airplane mode and optional save to camera roll 🥳

1.0 Nov 16, 2019

First release

What it does

155 actions
  1. Dictionary
  2. Get Dictionary Value
  3. Set Variable
    peak
  4. Get Dictionary Value
  5. If
  6. Set Variable
    peak
  7. If
  8. Get Dictionary Value
  9. Set Variable
    users
  10. Get Dictionary Value
  11. If
  12. Set Variable
    users
  13. If
  14. Get Dictionary Value
  15. Set Variable
    airplane
  16. Get Dictionary Value
  17. If
  18. Set Variable
    airplane
  19. If
  20. Get Dictionary Value
  21. Set Variable
    stats
  22. Get Dictionary Value
  23. If
  24. Set Variable
    stats
  25. If
  26. Get Dictionary Value
  27. Set Variable
    progress
  28. Get Dictionary Value
  29. If
  30. Set Variable
    progress
  31. If
  32. Get Dictionary Value
  33. Set Variable
    profile_pic
  34. Get Dictionary Value
  35. If
  36. Set Variable
    profile_pic
  37. If
  38. Get Dictionary Value
  39. Set Variable
    save
  40. Get Dictionary Value
  41. If
  42. Set Variable
    save
  43. If
  44. Count
  45. Set Variable
    user_ count
  46. Set Variable
    icloud_names
  47. Format Date
  48. Set Variable
    start
  49. Create Folder
  50. Number
  51. Set Variable
    stories
  52. Number
  53. Set Variable
    profiles
  54. Set Variable
    previews
  55. Repeat with Each
  56. If
  57. Show Notification
    Überprüfe … von … 🙋‍♂️
  58. If
  59. Set Variable
    downloads
  60. Number
  61. Set Variable
    magic_continue
  62. Set Variable
    urls
  63. Get Contents of URL
    https://storiesig.com/stories/…
  64. Make HTML from Rich Text
  65. Split Text
  66. Repeat with Each
  67. If
  68. Split Text
  69. Get Item from List
  70. If
  71. Replace Text
  72. Add to Variable
  73. If
  74. If
  75. Get Item from List
  76. Set Variable
    profile_url
  77. Count
  78. Repeat
  79. Calculate
  80. Calculate
  81. Get Item from List
  82. Set Variable
    urls
  83. Calculate
  84. If
  85. Get Item from List
  86. Set Variable
    urls
  87. If
  88. Set Variable
    urls
  89. Repeat with Each
  90. Set Variable
    url
  91. Split Text
  92. Get Item from List
  93. Split Text
  94. Get Item from List
  95. Text
  96. Set Variable
    icloud_name
  97. If
  98. Get File
  99. Count
  100. If
  101. Add to Variable
  102. Add to Variable
  103. If
  104. Number
  105. Set Variable
    magic_continue
  106. If
  107. Count
  108. Repeat
  109. Calculate
  110. Calculate
  111. Get Item from List
  112. Set Variable
    downloads
  113. Count
  114. If
  115. Show Notification
    … neue Stories werden heruntergeladen 📨
  116. If
  117. Get Contents of URL
    …
  118. Add to Variable
  119. If
  120. Save to Photo Album
  121. If
  122. If
  123. Repeat with Each
  124. Get Contents of URL
    …
  125. Add to Variable
  126. If
  127. Save to Photo Album
  128. If
  129. Calculate
  130. Set Variable
    stories
  131. Calculate
  132. Set Variable
    profiles
  133. If
  134. Repeat with Each
  135. Save File
  136. If
  137. Format Date
  138. Get Time Between Dates
  139. Show Notification
    … neue Stories von … Profilen (… insgesamt) in … Sekunden erfolgreich heruntergeladen 📬
  140. Get Device Details
  141. If
  142. Vibrate Device
  143. If
  144. If
  145. If
  146. If
  147. If
  148. Set Airplane Mode
  149. If
  150. Quick Look
  151. If
  152. Set Airplane Mode
  153. If
  154. If
  155. If

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/documents'
#include 'actions/calendar'
#define color taupe
#define glyph alien

const Wrterbuch = {
	"airplane": false,
	"album": "StoryTime",
	"location": "_storytime",
	"name": "StoryTime",
	"peak": true,
	"profile_pic": true,
	"profiles": [
		"1live"
	],
	"progress": false,
	"save": true,
	"stats": true
}
@peak = Wrterbuch['peak']
const Wrterbuchwert = getValue(ShortcutInput, "peak")

if Wrterbuchwert {
	@peak = Wrterbuchwert
} else {
}
@users = Wrterbuch['profiles']
const Wrterbuchwert1 = getValue(ShortcutInput, "profiles")

if Wrterbuchwert1 {
	@users = Wrterbuchwert1
} else {
}
@airplane = Wrterbuch['airplane']
const Wrterbuchwert2 = getValue(ShortcutInput, "airplane")

if Wrterbuchwert2 {
	@airplane = Wrterbuchwert2
} else {
}
@stats = Wrterbuch['stats']
const Wrterbuchwert3 = getValue(ShortcutInput, "stats")

if Wrterbuchwert3 {
	@stats = Wrterbuchwert3
} else {
}
@progress = Wrterbuch['progress']
const Wrterbuchwert4 = getValue(ShortcutInput, "progress")

if Wrterbuchwert4 {
	@progress = Wrterbuchwert4
} else {
}
@profile_pic = Wrterbuch['profile_pic']
const Wrterbuchwert5 = getValue(ShortcutInput, "profile_pic")

if Wrterbuchwert5 {
	@profile_pic = Wrterbuchwert5
} else {
}
@save = Wrterbuch['save']
const Wrterbuchwert6 = getValue(ShortcutInput, "save")

if Wrterbuchwert6 {
	@save = Wrterbuchwert6
} else {
}
count(@users)
@User_Count
@icloud_names = nil
formatDate(CurrentDate, "ISO 8601")
@start
createFolder(Wrterbuch['location'])
@stories = 0
@profiles = 0
@previews = nil

for _ in @users {
	if @progress ==  {
		showNotification("Überprüfe {@RepeatIndex} von {@User_Count} 🙋‍♂️", "{Wrterbuch['name']} {@RepeatItem}", false, Wrterbuchwert7)
	} else {
	}
	@downloads = nil
	@magic_continue = 1
	@urls = nil
	const InhaltDerURL = downloadURL("https://storiesig.com/stories/{@RepeatItem}")
	const HTMLZuFormatiertemText = makeHTML(InhaltDerURL, false)
	const TextAufteilen = splitText(HTMLZuFormatiertemText, "src="")
	for _ in TextAufteilen {
		if @RepeatItem2 beginsWith "https" {
			const TextAufteilen1 = splitText(@RepeatItem2, """)
			const ObjektAusListe = getListItem(TextAufteilen1, 0)
			if ObjektAusListe contains "insta" {
				replaceText("&", "&", ObjektAusListe)
				@urls
			} else {
			}
		} else {
		}
	}
	getListItem(@urls, 0)
	@profile_url
	const Anzahl = count(@urls)
	repeat _ for Anzahl {
		const ErgebnisDerBerechnung = Anzahl - @RepeatIndex2
		const ErgebnisDerBerechnung1 = ErgebnisDerBerechnung + 1
		getListItem(@urls, ErgebnisDerBerechnung1)
	}
	@urls
	const ErgebnisDerBerechnung2 = Anzahl - 1
	if ErgebnisDerBerechnung2 > 0 {
		getListItems(@urls, 0, ErgebnisDerBerechnung2)
		@urls
	} else {
		@urls = nil
	}
	for _ in @urls {
		@url = @RepeatItem2
		const TextAufteilen2 = splitText(@url, "?")
		const ObjektAusListe1 = getFirstItem(TextAufteilen2)
		const TextAufteilen3 = splitText(ObjektAusListe1, "/")
		getLastItem(TextAufteilen3)
		@icloud_name = "{}.txt"
		if @magic_continue ==  {
			const Datei = getFile("{Wrterbuch['location']}/{@icloud_name}", false)
			const Anzahl1 = count(Datei)
			if Anzahl1 == 0 {
				@icloud_names = @icloud_name
				@downloads = @url
			} else {
				@magic_continue = 0
			}
		} else {
		}
	}
	const Anzahl2 = count(@downloads)
	repeat _ for Anzahl2 {
		const ErgebnisDerBerechnung3 = Anzahl2 - @RepeatIndex2
		const ErgebnisDerBerechnung4 = ErgebnisDerBerechnung3 + 1
		getListItem(@downloads, ErgebnisDerBerechnung4)
	}
	@downloads
	const Anzahl3 = count(@downloads)
	if Anzahl3 > 0 {
		showNotification("{Anzahl3} neue Stories werden heruntergeladen 📨", "{Wrterbuch['name']} {@RepeatItem}", true)
		if @profile_pic ==  {
			const InhaltDerURL1 = downloadURL(@profile_url)
			@previews = InhaltDerURL1
			if @save ==  {
				savePhoto(InhaltDerURL1, Wrterbuch['album'])
			} else {
			}
		} else {
		}
		for _ in @downloads {
			const InhaltDerURL2 = downloadURL(@RepeatItem2)
			@previews = InhaltDerURL2
			if @save ==  {
				savePhoto(InhaltDerURL2, Wrterbuch['album'])
			} else {
			}
			@stories = @stories + 1
		}
		@profiles = @profiles + 1
	} else {
	}
}

for _ in @icloud_names {
	saveFile("{Wrterbuch['location']}/{@RepeatItem}")
}

if @stats ==  {
	formatDate(CurrentDate, "ISO 8601")
	rawAction("is.workflow.actions.gettimebetweendates", {
		"WFInput": "{}",
		"WFTimeUntilFromDate": "{@start}",
		"WFTimeUntilUnit": "Seconds"
	})
	showNotification("{@stories} neue Stories von {@profiles} Profilen ({@User_Count} insgesamt) in {} Sekunden erfolgreich heruntergeladen 📬", Wrterbuch['name'], false, Wrterbuchwert8)
	const Gertemodell = getDeviceDetail("Device Model")
	if Gertemodell contains "iPhone" {
		vibrate()
	} else {
	}
} else {
}

if @stories > 0 {
	if @peak ==  {
		if @airplane ==  {
			setAirplaneMode(false)
		} else {
		}
		quicklook(@previews)
		if @airplane ==  {
			setAirplaneMode(0)
		} else {
		}
	} else {
	}
} else {
}
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 oliver

See All

You Might Also Like

See All
Advertisement