(Mar-24-2019, 11:43 AM)metulburr Wrote: im not sure if this is still accurate in the process, but if so you can replicate it in python.Hmm why try an old method that for sure will not work now,youtube-dl is always updated as a lot people work on it.
https://www.computing.dcu.ie/~humphrys/N...utube.html
Also support a lot of other video sites youtube-dl supported sites.
Basic usage is simple
youtube-dl url_link
Example get video:
λ youtube-dl https://www.youtube.com/watch?v=d8OI9FllKfg [youtube] d8OI9FllKfg: Downloading webpage [youtube] d8OI9FllKfg: Downloading video info webpage [youtube] d8OI9FllKfg: Downloading js player vflGPko2h [download] Destination: Komodo - (I Just) Died In Your Arms-d8OI9FllKfg.f248.webm [download] 100% of 30.32MiB in 00:16 [download] Destination: Komodo - (I Just) Died In Your Arms-d8OI9FllKfg.f251.webm [download] 100% of 4.14MiB in 00:02 [ffmpeg] Merging formats into "Komodo - (I Just) Died In Your Arms-d8OI9FllKfg.webm" Deleting original file Komodo - (I Just) Died In Your Arms-d8OI9FllKfg.f248.webm (pass -k to keep) Deleting original file Komodo - (I Just) Died In Your Arms-d8OI9FllKfg.f251.webm (pass -k to keepExample get MP3 in highest quality:
λ youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=d8OI9FllKfg [youtube] d8OI9FllKfg: Downloading webpage [youtube] d8OI9FllKfg: Downloading video info webpage [youtube] d8OI9FllKfg: Downloading js player vflGPko2h [download] Destination: Komodo - (I Just) Died In Your Arms-d8OI9FllKfg.webm [download] 100% of 4.14MiB in 00:02 [ffmpeg] Destination: Komodo - (I Just) Died In Your Arms-d8OI9FllKfg.mp3