Skip to content

Instantly share code, notes, and snippets.

@rsalmond
Created November 20, 2016 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsalmond/05abf0dbdf06e16e352b454f124be9ab to your computer and use it in GitHub Desktop.
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.
#!/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