Editorial Workflows

Image MD (Flickr)

public 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: Generates an MD image entry.

Selected text = image description
Clipboard = Flickr image URL ("Copy URL")

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Get Clipboard ?
Generate Text ?
Text
Input
Get URL source code- PYTHON ?
Source Code
#coding: utf-8
import workflow
import urllib2

url = workflow.get_input()
# write the url here

usock = urllib2.urlopen(url)
data = usock.read()
usock.close()

workflow.set_output(data)
Extract URLs ?
Output
  • Only URLs
  • URLs and Ranges (Separated by Tab)
Find ?
Search for
https://farm.*_.*_[^q]\.jpg
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Generate Text ?
Text
Input
Find ?
Search for
https://farm.*_.*_
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Generate Text ?
Text
![Selected Text](Inputb.jpg)
Replace Selected Text ?
Replacement Text
Input