Editorial Workflows

create blog URL

unlisted workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: URL cleanup and final URL creation for further use in Filterstorm or any other app the allows uploading by FTP path.

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Generate Text ?
Text
Input
Run Python Script ?
Source Code
#coding: utf-8
import workflow
import string

action_in = workflow.get_input()

filename = action_in.lower()
filename = filename.encode('utf-8')
filename = filename.replace('–','-')
filename = filename.replace('—','-')
filename = filename.replace(' - ','-')
filename = filename.replace(' ','_')
filename = filename.replace('"','')
filename = filename.replace('“','')
filename = filename.replace('”','')
filename = filename.replace('„','')
filename = filename.replace('…','_')
filename = filename.replace('_-_','-')
filename = filename.replace('___','_')
filename = filename.replace('!','')
filename = filename.replace('?','')
filename = filename.replace('‽','')

action_out = filename

workflow.set_output(action_out)
Prefix / Suffix Lines ?
  • Prefix
  • Suffix
Text
babylondreams.dyndns.org:2121/content/01-blog/Year: 2001Month: 01Day: 01-
Set Clipboard ?