View sample.opml
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<title>OmniTest</title>
<expansionState>0</expansionState>
</head>
<body>
<outline text="Google" url="http://google.com" type="link"/>
<outline text="It is a &lt;a href=http://google.com&quot;&gt;link&lt;/a&gt;"/>
</body>
View workflowy_bookmark.js
javascript:alert('<opml><body><outline text="'+document.title+'" _note="'+location.href+'"/></body></opml>');
View omdb.py
import requests
import json
import sys
import urllib
import webbrowser
searchTitle = sys.argv[1]
newSearchTitle = urllib.quote(searchTitle, '')
searchYear = sys.argv[2]
data = requests.request('GET','http://www.omdbapi.com/?t=' + newSearchTitle + '&y=' + searchYear + '&r=json&tomatoes=true')
if data.status_code == 200:
View instagramImage.py
import requests
import json
import sys
import urllib
import webbrowser
url = sys.argv[1]
data = requests.request('GET','http://api.instagram.com/publicapi/oembed/?url=' + url)
if data.status_code == 200:
embed = json.loads(data.text)
img = embed['thumbnail_url']
View import_media_reminders.py
import reminders
import editor
editor.insert_text('# TV Shows to Watch')
editor.insert_text('\n\n')
cals = reminders.get_all_calendars()
for calendar in cals:
if calendar.title == 'tv':
View add to wallabag
<html>
<body>
<script>
function convert(form) {
var url = form.url.value;
url = btoa(url);
window.open("http://YOURDOMAIN.com/wallabag/?action=add&autoclose=true&url=" + url);
}
</script>
View wallabag
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# I am more than likely importing more libraries than are necessary
import urllib2
import urllib
import re
import clipboard
import urlparse
import notification
View spotify for status board
<!DOCTYPE html>
<html lang="en">
<head>
<title>spotify for status board</title>
</head>
<body onload="spotifyAlbum()">
<script>
function spotifyAlbum() {
var xmlhttp = new XMLHttpRequest();
var url = "https://api.spotify.com/v1/albums/?ids="; // PUT ALBUM IDS, COMMA-DELIMITED, AFTER THE EQUALS SIGN AND BEFORE THE CLOSING QUOTE
View river4-parser.html
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script>
function daveRiver(form) {
var xmlhttp = new XMLHttpRequest();
var url = form.item.value;
View pushpin opml
<?xml version="1.0"?>
<opml version="2.0">
<head>
<ownerEmail>jeffreykishner@gmail.com</ownerEmail>
</head>
<body>
<outline text="search" >
<outline text="📌" _note="https://workflowy.com/#/?q=%F0%9F%93%8C" /></outline>
</body>
</opml>