ShareShortcuts

PinterestDown

- Download Images/Videos on Pinterest

wopson
Dupliquer « PinterestDown »

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 wopson 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
66K
Enregistré
3
Actions
43
Catégorie
Photos and videos
Version
1.1
Langue
EN
  • Download Images/Videos on Pinterest

Nouveautés

Version 1.1

Fixed an issue where a replace action was not using regex

Historique des versions
1.1 30 avr. 2020

Fixed an issue where a replace action was not using regex

1.0 28 avr. 2020

First release

Ce qu’il fait

43 actions
  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

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 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)
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 wopson

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité