Fetching mp3 from youtube video on Ubuntu Linux
the selected tool is 'youtube-dl'
from the terminal prompt write:
$pip install youtube-dl
but then you get this error (because we are March 2023 and things are broken)
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
for the long version of this error:
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
File "/home/_dl/extractor/common.py", line 1012, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
To fix this error you will have to type this:
$ pip uninstall youtube-dl
then type this:
$pip install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl
but that means you need to install git
$ apt install git
will do
while you're installing new package don't forget to get ffmpeg as well
$ apt install ffmpeg
Now you're ready to get the song you want