Editorial Workflows

CleanIFTTT

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: Resolves a shortened IFTTT URL received from input, then launches Tweetbot.

Shared by: viticci

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
IFTTT
Value
Input
Extract URLs ?
Output
  • Only URLs
  • URLs and Ranges (Separated by Tab)
Set Variable ?
Variable Name
URL
Value
Input
Run Python Script ?
Source Code
import re
import string
import console
import urllib, urllib2
from bs4 import BeautifulSoup 
import sys
import workflow
 
console.clear()

redirect = workflow.get_input()

if redirect:
	cleaned = urllib.urlopen(redirect).geturl()
	soup = BeautifulSoup(urllib2.urlopen(cleaned))
	url_title = soup.title.string
	workflow.set_output(url_title + ' ' + cleaned)
	console.hide_activity()
elif not redirect:
	console.alert('No match found')
Set Variable ?
Variable Name
cleaned
Value
Input
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
tweetbot://post?text=Input
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
Unique identifier
Wait until Loaded
OFF
Reveal Browser Automatically
ON