youtube-dl for iOS, with Pythonista and Shortcuts
Download a video (or its audio track) by sharing it to a shortcut
The shortcut calls a helper script run within Pythonista. This script passes the URL to youtube-dl to do the actual download. After the download completes, the file is opened in a share sheet where it may be copied to any app, such as VLC.
-
Install Pythonista
-
In Pythonista, install StaSH
-
In a StaSH console, install youtube-dl:
$ pip install youtube-dl
-
and clone this repository (note:
git
is only available if StaSH is run in Python 2):$ cd $ git clone https://github.com/Roman2K/youtube-dl-ios
-
Install the shortcut: iCloud link
- Share a video to Shortcuts and then youtube-dl-ios
- The downloaded file opens in a share sheet: choose an app
- (The temporary file is cleaned up)