Python Prompts Free Prompt

Python Script to Download YouTube Videos (yt-dlp wrapper)

Write a Python script to download YouTube videos using yt-dlp
☆ Save
Prompt
You are a Python developer. Write a script that downloads YouTube videos given a list of URLs. Use the yt-dlp library. The script must: 1) Accept URLs from command line or file, 2) Allow format selection (audio only, best video), 3) Download to specified folder, 4) Show progress bar, 5) Handle playlists, 6) Extract subtitles if available, 7) Log errors and successes. Add comments and a requirements.txt.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.