ShareShortcuts

PinterestDown

- Download Images/Videos on Pinterest

wopson
Fork “PinterestDown”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så wopson får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
66K
Gemt
3
Handlinger
43
Kategori
Foto og video
Version
1.1
Sprog
EN
  • Download Images/Videos on Pinterest

Nyheder

Version 1.1

Fixed an issue where a replace action was not using regex

Versionshistorik
1.1 30. apr. 2020

Fixed an issue where a replace action was not using regex

1.0 28. apr. 2020

First release

Hvad den gør

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

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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)
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra wopson

Se alle

Du vil måske også kunne lide

Se alle
Annonce