ShareShortcuts

SoundCloud To MP3

SoundCloud To Mp3 You can copy the SoundCloud track link to run shortcut

pola
Fork “SoundCloud To MP3”

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 pola 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
28K
Saved
0
Actions
35
Category
Music
Version
1.0
Language
EN

SoundCloud To Mp3

You can copy the SoundCloud track link to run shortcut. You can also use Share Sheet from SoundCloud App.

What's New

Version 1.0

First release

Version History
1.0 Dec 27, 2023

First release

What it does

35 actions
  1. Dictionary
  2. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  3. Get Dictionary Value
  4. If
  5. Choose from Menu
    New version available. What's new: … Press UPDATE to download latest version.
  6. Choose from Menu
    UPDATE
  7. Open URLs
  8. Stop This Shortcut
  9. Choose from Menu
    SKIP
  10. Nothing
  11. Random Number
  12. Text
  13. Set Variable
    Filename
  14. Comment
    SoundCloud To Mp3 Create by: Peymalv-Sh You can copy the SoundCloud track link to run shortcut. You can also use Share Sheet from SoundCloud App.
  15. Get URLs from Input
  16. Set Variable
    url
  17. Get Variable
  18. Match Text
  19. If
  20. Get Contents of URL
    https://videodownloaderguru.com
  21. Make HTML from Rich Text
  22. Match Text
  23. Replace Text
  24. Get Contents of URL
    https://videodownloaderguru.com/wp-json/aio-dl/video-data/
  25. Get Dictionary Value
  26. If
  27. Get Item from List
  28. If
  29. Get Item from List
  30. Get Dictionary Value
  31. Get URLs from Input
  32. Set Variable
    SongURL
  33. Get Contents of URL
    …
  34. Set Name
  35. Save File

View as code
Beta

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

#include 'actions/web'
#define color blue
#define glyph musicNote

const UPDATE = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"shortcut": {
		"id": "16924",
		"module": "routinehub",
		"version": "1.1"
	}
})
const Response = getValue(UPDATE, "update")

if Response ==  {
	menu "New version available. \nWhat's new: \n{UPDATE['payload.notes']}\nPress UPDATE to download latest version." {
	item "UPDATE":
		openURL(UPDATE['payload.download'])
		stop()
	item "SKIP":
	}
}
randomNumber(100, 9999)
@Filename = "SoundCloud-{}"
/*
SoundCloud To Mp3

Create by: Peymalv-Sh

You can copy the SoundCloud track link to run shortcut.

You can also use Share Sheet from SoundCloud App.

*/
getURLs(ShortcutInput)
@url
// TODO: Get Variable not supported: Assign variable here to '@url'.
const Matches = containsText(@url, "|soundcloud|")

if Matches {
	const ContentsOfURL = downloadURL("https://videodownloaderguru.com")
	makeHTML(ContentsOfURL)
	containsText(, "(?<=<input name=\")(.*?)(?=\" type=\"hidden\" value=\")(.*?)(?=\" \/>)")
	const Token = replaceText(">|name|token|value|=|\"| ", "", false, true)
	const ContentsOfURL1 = formRequest("https://videodownloaderguru.com/wp-json/aio-dl/video-data/", "POST", {
		"token": "{Token}",
		"url": "{@url}"
	})
	const DictionaryValue = getValue(ContentsOfURL1, "medias")
	if DictionaryValue['Name'] contains "\"extension\":\"mp4\"" {
		getLastItem(DictionaryValue)
	} else {
		getRandomItem(DictionaryValue)
	}
	getURLs()
	@SongURL
	const ContentsOfURL2 = downloadURL(@SongURL)
	const RenamedItem = setName(ContentsOfURL2, @Filename)
	saveFile("SNC MP3/{}.mp3", RenamedItem)
}
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 pola

See All

You Might Also Like

See All
Advertisement