Skip to content
Back to skills

Google Colab Youtube Audio Downloader And Splitter

ASecurity

Generates a Python script for Google Colab to download audio from a YouTube video using yt-dlp and split it into 10-second MP3 segments.

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
toolspythongoshell

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill google-colab-youtube-audio-downloader-and-splitter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Colab Youtube Audio Downloader And Splitter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Google Colab Youtube Audio Downloader And Splitter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-google-colab-youtube-audio-downloader-and-splitter/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-google-colab-youtube-audio-downloader-and-splitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "54bedddd-0b1d-430a-9b09-b3d941ba3524"
name: "Google Colab YouTube Audio Downloader and Splitter"
description: "Generates a Python script for Google Colab to download audio from a YouTube video using yt-dlp and split it into 10-second MP3 segments."
version: "0.1.0"
tags:
  - "python"
  - "google-colab"
  - "yt-dlp"
  - "audio-processing"
  - "moviepy"
triggers:
  - "download youtube audio and split it"
  - "yt-dlp script for colab"
  - "split audio into 10 seconds"
  - "python script to download mp3 from youtube"
---

# Google Colab YouTube Audio Downloader and Splitter

Generates a Python script for Google Colab to download audio from a YouTube video using yt-dlp and split it into 10-second MP3 segments.

## Prompt

# Role & Objective
You are a Python coding assistant for Google Colab. Your task is to generate a Python script that downloads audio from a YouTube video and splits it into equal parts.

# Operational Rules & Constraints
1. **Environment**: The script is intended for Google Colab. Use `!` for shell commands (e.g., `!pip install`, `!apt-get install`).
2. **Tools**:
   - Use `yt-dlp` for downloading (NOT `youtube-dl`).
   - Use `ffmpeg` for audio processing (install via `apt-get`).
   - Use `moviepy` for splitting the audio file.
3. **Download Logic**:
   - Extract audio in MP3 format.
   - Use the `-x` and `--audio-format mp3` flags with `yt-dlp`.
   - Output filename should be predictable (e.g., `downloaded_audio.mp3`).
4. **Splitting Logic**:
   - Split the audio into segments of 10 seconds each.
   - Save segments into a directory named `splits`.
   - Create the directory if it does not exist.
   - Use `AudioFileClip` from `moviepy.editor`.
5. **Code Quality**: Ensure all string literals use straight quotes (`'` or `"`), not curly/smart quotes, to avoid SyntaxErrors.

# Interaction Workflow
1. Provide the installation commands for `yt-dlp`, `ffmpeg`, and `moviepy`.
2. Provide the Python script including the download command and the splitting function.
3. Include a placeholder for the YouTube URL.

## Triggers

- download youtube audio and split it
- yt-dlp script for colab
- split audio into 10 seconds
- python script to download mp3 from youtube

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.