Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qodestack/dl-yt-playlist

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qodestack/dl-yt-playlist

Download all YouTube videos (or audio only) from every video in a playlist!

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
94
increased by4600%
Maintainers
1
Weekly downloads
 
Created
Source

Download YouTube Playlist

Download all YouTube videos (or audio only) from every video in a playlist!

Prerequisites

You'll need a few things to use this project:

  • This project uses Bun! Get that installed or feel free to edit the source code to use Node instead (it'll only be a few adjustments).
  • You'll need a YouTube Data API key. Set that to the API_KEY env variable.
  • The yt-dlp command line tool needs to be present on your system. You can easily install it with a tool like Brew.

Usage

Download all videos:

bun start

Download all videos as MP3 files:

bun audio

Folder Structure

Downloads will be organized into the following folder structure:

data
  /<playlist name>
    /video
    /audio
    responses.json
    videoMetadata.json

TODOs

[ ] Implement "initialDownload" which conditionally downloads all YT metadata otherwise only makes a single call for the 1st 50 entries

Keywords

FAQs

Package last updated on 23 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc