Is it safe to install youtube-dl on my Mac? I recently came to know about youtube-dl to download YouTube videos. My Mac is the main computer I use. I want to ensure I don't download any malicious script or software.

Is youtube-dl totally safe to download and install?
Yes, it is totally safe to install youtube-dl for downloading YouTube videos. See this answer.

It is recommended to install it via Homebrew.