Editorial Workflows

Instapaper Articles

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: Displays your Instapaper unread items (from the Home panel), prompts to select one and opens it in Editorial's built-in browser.

Shared by: Phillip Gruneich

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Add your Instapaper feed url here ?
Variable Name
instapaper_feed
Value
Paste your Instapaper feed here.
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
http://instapaper.com/rss/
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
Add your Instapaper feed URL
…End If
Creates empty var for the json ?
Variable Name
instapaper_json
Value
Input
Parses the feed and returns the page titles ?
Source Code
#coding: utf-8
import workflow
import feedparser
import json

feed = workflow.get_variable('instapaper_feed')
parse = feedparser.parse(feed)

parse_dict = {item['title']: item['link'] for item in parse['entries']}
parse_titles = '\n'.join(parse_dict.keys())
instapaper_json = json.dumps(parse_dict)

workflow.set_variable('instapaper_json', instapaper_json)
workflow.set_output(parse_titles)
Select from List ?
Title
Select an Article
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
ON
Matches for the URL of the chosen title ?
Source Code
#coding: utf-8
import workflow
import json

instapaper_json = json.loads(workflow.get_variable('instapaper_json'))
action_in = workflow.get_input()
workflow.set_output(instapaper_json[action_in])
Open URL in the built-in browser ?
Open in
  • In-App Browser
  • Default App / Safari
URL
Input
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
Unique identifier
Wait until Loaded
OFF
Reveal Browser Automatically
ON