Skip to content

Instantly share code, notes, and snippets.

View joemay's full-sized avatar

José Luis May Chan joemay

View GitHub Profile
// bookmarklet template for Pinswift
// This can be copied into a bookmarklet maker like:
// http://chriszarate.github.io/bookmarkleter/
// Or used with Gruber's script
// http://daringfireball.net/2007/03/javascript_bookmarklet_builder
var href = location.href;
var path = 'pinswift://x-callback-url/add';
from flask import Flask, jsonify, request, Response, send_file
import youtube_dl
import eyed3
"""
Workflow script: https://workflow.is/workflows/7b80d0daa48847ff867882bed7df8032
Requires python installed with packages Flask, youtube_dl and eyed3 installed through pip
Required FFmpeg for mp3 conversion
"""
class SimpleYDL(youtube_dl.YoutubeDL):
def __init__(self, *args, **kargs):