Created
November 20, 2016 03:46
-
-
Save rsalmond/05abf0dbdf06e16e352b454f124be9ab to your computer and use it in GitHub Desktop.
Grab a youtube video via a socks proxy via some server you have ssh access to.
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
#!/bin/bash | |
# start a socks 5 proxy in screen | |
screen -d -m -S ytsnarf ssh -ND 8080 <your-server> | |
# dload via proxy | |
youtube-dl --proxy socks://localhost:8080 $1 | |
# kill the session | |
screen -X -S ytsnarf quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment