Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-5-haiku-20241022· AnthropicHugging Face LMArena Human Preference 140K

I want to build a CLI tool that automates the process of downloading videos from a list…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with o4-mini-2025-04-16’s answer.
  1. User

    I want to build a CLI tool that automates the process of downloading videos from a list of youtube channels and playlists and then sorts them into the right folder on my computer. Essentially its job is to look for new videos from the provided source list, figure out which folder in my local media folder each respective video belongs in, and finally downloads + places those videos into those respective folders.

    I already have a folder structure where I've organized hundreds of videos manually. It's a nested folder structure of different custom categories I've defined, where each folder is a category. Most of the videos I've already downloaded (several hundred) use the same title as the YouTube source. The idea is we can use an LLM to perform the categorization by passing in a file tree structure of the existing folders and file names within them. Ideally we would use the LLM service's caching function for cost optimization.

    It should use a config file which lets me specify the sources (channels and playlists) we should download from. Each source should have a 'last synced date' parameter to track when that source was last checked and downloaded from. This is to make it easy for me to add new sources over time and prevent the script from checking videos from before the last synced date. The script should use the yt-dlp package to manage downloads/metadata from youtube (that's what I use right now for manually downloading stuff). Because many of the videos I'm downloading are in foreign languages I should be able to specify the subtitle languages I want downloaded and attached to every video that gets downloaded. The config file should also let me enable debug logging.

    For reference, here's the command I currently use for downloading these videos (note that this command embeds subtitles too):

    yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4" --embed-subs --write-auto-subs --sub-langs "en,en-US,en*,en-*"

    Functionally I should be able to run the CLI command and the script will begin checking the sources from the config file, finding videos that were added or uploaded past the last sync date and getting the metadata for them. It will then use the metadata (the video's title) to figure out which folder each new video should go into. Importantly it shouldn't start downloading the videos yet because it should allow me to verify that I'm happy with the videos to download list as well as their designated folders. This verification step should let me make modifications to videos that I'm not happy with, such as removing videos from being downloaded or changing the designated folder (either by re-running the LLM categorization process or by manually selecting a folder myself). Finally, when I'm satisfied, the script should begin downloading videos. A progress UI should be present that lets me see the status of the downloads (including errors, such as if some downloads fail or if subtitles can't be found for example)

    Lastly, the CLI should have an override that lets me directly provide a bunch of youtube video, channel, or playlist links which should be used as sources instead of the sources provided in the config file. This is to make it easy for me to download ad-hoc videos I find that aren't in the usual channels/playlists present in the config file.

    Give me an overview of how this script would work, from a UX and technological standpoint. Feel free to ask clarifying questions if necessary. When we're both satisfied, we can begin the technical implementation.

  2. Claude Assistant

    This sounds like an excellent project for a comprehensive media management and download CLI tool. Let me break down the key components and workflow:

    Architecture Overview:

    1. Core Components
    • CLI Interface (likely using Click or Typer)
    • Configuration Management
    • YouTube Source Tracker
    • Metadata Extraction
    • AI Categorization Service
    • Download Manager
    • Progress/Logging UI

    Workflow Stages:

    1. Source Discovery
    • Read config file with channel/playlist sources
    • Use yt-dlp to fetch new video metadata since last sync
    • Collect video titles, URLs, upload dates
    1. Categorization Phase
    • Generate current folder structure representation
    • Use LLM (OpenAI/Anthropic) to suggest folder placements
    • Present categorization suggestions to user
    • Allow manual override/confirmation
    1. Download Phase
    • Parallel video downloads with progress tracking
    • Subtitle handling
    • Error management
    • Logging

    Technical Questions:

    1. LLM Preference: OpenAI, Anthropic, or local model?
    2. Caching strategy for LLM categorization?
    3. Preferred progress UI (rich/textual)?
    4. Configuration file format (YAML/TOML/JSON)?
    5. Logging preferences (file + console)?

    Would you like me to elaborate on any of these points or dive deeper into a specific aspect of the design?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.