This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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): |
OlderNewer