effect-youtube
v1.0.0
Published
A command-line tool for interacting with YouTube Data API and extracting transcripts from YouTube videos
Maintainers
Readme
YouTube Transcript CLI
A command-line application to extract transcripts from YouTube videos using video URLs or video IDs.
Features
- Extract transcripts from YouTube videos
- Support for both YouTube URLs and video IDs
- Optional timestamp formatting
- Standalone executable generation
Installation
bun installBuilding the Executable
To create a standalone executable:
# For Windows
bun run build:win
# For other platforms
bun run buildThis will create an executable in the bin/ folder.
Usage
Using the TypeScript source directly:
bun src/transcript.ts <youtube-url-or-video-id> [options]Using the compiled executable:
# Windows
bin/transcript.exe <youtube-url-or-video-id> [options]
# Other platforms
bin/transcript <youtube-url-or-video-id> [options]Options
--timestamps, -t: Include timestamps in the output--help, -h: Show help message
Examples
# Using video ID
bin/transcript.exe dQw4w9WgXcQ
# Using full YouTube URL
bin/transcript.exe https://www.youtube.com/watch?v=dQw4w9WgXcQ
# With timestamps
bin/transcript.exe dQw4w9WgXcQ --timestampsScripts
bun run build: Build executable for current platformbun run build:win: Build Windows executable (.exe)bun run clean: Remove build artifacts
This project was created using bun init in bun v1.2.18. Bun is a fast all-in-one JavaScript runtime.
