ShareShortcuts

html email to csv 2

html email to csv 2

endeaugust
Fork “html email to csv 2”

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 endeaugust 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
60K
Saved
0
Actions
25
Category
API
Version
1.0
Language
EN

html email to csv 2

What's New

Version 1.0

First release

Version History
1.0 May 2, 2020

First release

What it does

25 actions
  1. If
  2. Get File
  3. Repeat with Each
  4. Get Name
  5. Set Name
  6. Match Text
  7. Replace Text
  8. Replace Text
  9. Set Variable
    Source
  10. Text
  11. Split Text
  12. Repeat with Each
  13. Split Text
  14. Get Item from List
  15. Get Item from List
  16. Replace Text
  17. Set Variable
    Source
  18. Set Name
  19. Get Text from Input
  20. Match Text
  21. Match Text
  22. Replace Text
  23. Replace Text
  24. Set Name
  25. 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/text'
#define color orange
#define glyph magicWandAlt


const IfResult = if !ShortcutInput {
	getFileFromFolder(, "")
}

for _ in IfResult {
	getName(@RepeatItem)
	setName(IfResult, "{}.txt")
	containsText(, "(?s)<html>.*</html>")
	replaceText("=\s\s", "", true)
	replaceText("(\s)\s", "$1", true)
	@Source
	const Text = "=21 !\n=23 #\n=2E .\n=40 @\n=5B [\n=5D ]\n=7C |\n=C3=84 Ä\n=C3=96 Ö\n=C3=9C Ü\n=C3=9F ß\n=C3=A4 ä\n=C3=B6 ö\n=C3=BC ü\n=3D ="
	const SplitText = splitText(Text)
	for _ in SplitText {
		const SplitText1 = splitText(@RepeatItem, " ")
		getListItem(SplitText1, 0)
		getListItem(SplitText1, 2)
		replaceText(, @Source)
		@Source
	}
	const RenamedItem = setName(@Source, "{}.html")
	getText(RenamedItem)
	containsText(, "(?s)Ereignisse.*(?=Einstellungsübersicht)")
	containsText(, "(?s)Datum.*")
	replaceText("\"", "\\"")
	const UpdatedText = replaceText("(.*) \n(.*) ", "\"$1\";\"$2\"", true)
	const RenamedItem1 = setName(UpdatedText, "{}.csv")
	saveFilePrompt(RenamedItem1)
}
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

You Might Also Like

See All
Advertisement