ytdl-org/youtube-dl ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python command-line tool for downloading videos. I want to be able to run it from my terminal, paste in a URL from YouTube or other popular video sites, and have it save the video file directly to my computer. By default, it should just grab the best quality available.

It's important that it can handle entire playlists, not just single videos. If I give it a playlist URL, it should download all the videos in sequence. I'd also like a way to specify if I only want the audio, so I can save things as an MP3 file. The tool should be straightforward to use, with simple options for these features. Make it robust so it can skip over any unavailable videos in a playlist without stopping the whole process.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab