Skip to content

Instantly share code, notes, and snippets.

@endurtech
Created May 11, 2023 23:09
Show Gist options
  • Save endurtech/5dbc5b0927a44470e560ccd3b2cb4785 to your computer and use it in GitHub Desktop.
Save endurtech/5dbc5b0927a44470e560ccd3b2cb4785 to your computer and use it in GitHub Desktop.
A bash function I stumbled upon online. To be defined in .bashrc or just pasted into bash before exe. download. Once function is installed, run it via: |rumble <URL>|. Tested on Ubuntu 18.04lts and confirmed working.
rumble() {
youtube-dl --no-check-certificate -f mp4-480p/webm-480p/mp4-360p/mp4-720p/mp4-1080p $(curl -s "$1" | tr -d '\n'|awk -F "embedUrl" '{print $2}'|awk -F '"' '{print $3}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment