ShareShortcuts

PinterestDown

- Download Images/Videos on Pinterest

wopson
„PinterestDown“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit wopson die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
66K
Gesichert
3
Aktionen
43
Kategorie
Photos and videos
Version
1.1
Sprache
EN
  • Download Images/Videos on Pinterest

Neue Funktionen

Version 1.1

Fixed an issue where a replace action was not using regex

Versionsverlauf
1.1 30. Apr 2020

Fixed an issue where a replace action was not using regex

1.0 28. Apr 2020

First release

Was er macht

43 Aktionen
  1. Comment
    Made by /u/wet250 ( ͡° ͜ʖ ͡°)
  2. If
  3. Expand URL
  4. If
  5. Get Clipboard
  6. Match Text
  7. Count
  8. If
  9. Expand URL
  10. Match Text
  11. Count
  12. If
  13. Expand URL
  14. If
  15. Show Alert
  16. Stop This Shortcut
  17. If
  18. Show Alert
  19. Stop This Shortcut
  20. Replace Text
  21. Get Contents of URL
    …
  22. Make HTML from Rich Text
  23. Match Text
  24. Replace Text
  25. Replace Text
  26. Get Dictionary Value
  27. Get Item from List
  28. Get Dictionary Value
  29. Set Variable
    Title
  30. Get Dictionary Value
  31. Count
  32. If
  33. Get Contents of URL
    …
  34. Set Name
  35. Quick Look
  36. Stop This Shortcut
  37. Get Dictionary Value
  38. Filter Files
  39. Choose from List
  40. Get Dictionary Value
  41. Get Contents of URL
    …
  42. Set Name
  43. Quick Look

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

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

/*
Made by /u/wet250
( ͡° ͜ʖ ͡°)
*/

if ShortcutInput contains ShortcutInput {
	expandURL(ShortcutInput)
} else {
	getClipboard()
	const Matches = containsText(, "http")
	const Count = count(Matches)
	if Count == 1 {
		expandURL()
		const Matches1 = containsText(, "https?\:\/\/www.pinterest.com/pin/[0-9]+")
		const Count1 = count(Matches1)
		if Count1 == 1 {
			expandURL()
		} else {
			confirm("Not a Pinterest link!")
			stop()
		}
	} else {
		confirm("Not a link!")
		stop()
	}
}
replaceText("/sent.*", "", true)
const ContentsOfURL = downloadURL()
makeHTML(ContentsOfURL)
containsText(, "<script id=\"initial-state\" type=\"application\/json\">.*?<\/script>")
replaceText("<script id=\"initial-state\" type=\"application/json\">", "")
const UpdatedText = replaceText("</script>", "")
const DictionaryValue = getValue(UpdatedText, "resourceResponses")
const ItemFromList = getRandomItem(DictionaryValue)
const DictionaryValue1 = getValue(ItemFromList, "response.data")
@Title = DictionaryValue1['page_metadata.metatags.title']
const DictionaryValue2 = getValue(DictionaryValue1, "videos")
const Count2 = count(DictionaryValue2)

if Count2 != 0 {
	const ContentsOfURL1 = downloadURL(DictionaryValue2['video_list.V_720P.url'])
	const RenamedItem = setName(ContentsOfURL1, @Title)
	quicklook(RenamedItem)
	stop()
}
const DictionaryValue3 = getKeys(DictionaryValue1['images'])
const Files = filterFiles(DictionaryValue3, "Name", "A to Z")
chooseFromList(Files, "Choose Image Size")
const ContentsOfURL2 = downloadURL()
const RenamedItem1 = setName(ContentsOfURL2, @Title)
quicklook(RenamedItem1)
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Mehr von wopson

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung