Skip to content

Instantly share code, notes, and snippets.

View marco-mamani's full-sized avatar
🏠
Working from home

marco-mamani

🏠
Working from home
  • Freelancing
  • Bolivia
View GitHub Profile
@marco-mamani
marco-mamani / youtube-dl.md
Created November 20, 2023 15:08
youtube-dl cheat sheat

To download a video in 720p MP4:

youtube-dl -f 22 example.com/watch?v=id

To download a video in 720p MP4 or WebM or FLV:

youtube-dl -f 22/45/120

To list all available formats of a video:

youtube-dl -F example.com/watch?v=id

To download a video to /$uploader/$date/$title.$ext:

[myservers]
54.82.249.78 ansible_user=ubuntu