ShareShortcuts

PinterestDown

- Download Images/Videos on Pinterest

wopson
Fazer fork de “PinterestDown”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que wopson receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
66K
Salvo
3
Ações
43
Categoria
Photos and videos
Versão
1.1
Idioma
EN
  • Download Images/Videos on Pinterest

Novidades

Versão 1.1

Fixed an issue where a replace action was not using regex

Histórico de versões
1.1 30 de abr de 2020

Fixed an issue where a replace action was not using regex

1.0 28 de abr de 2020

First release

O que ele faz

43 ações
  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

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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)
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de wopson

Ver tudo

Você também pode gostar

Ver tudo
Publicidade