Skip to content

MichalBastrzyk/yt-transcript-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yt-transcript-cli

A lightweight command-line tool that lets you extract and display transcripts from any YouTube video.

Features

  • Extract transcripts from YouTube videos using just a URL
  • Support for transcripts in different languages
  • Handle various YouTube URL formats (standard, shortened, embed)
  • Simple and intuitive command-line interface
  • Fast performance with minimal dependencies

Installation

Prerequisites

This tool requires Bun runtime.

Installation

  1. Clone this repository
git clone https://github.com/MichalBastrzyk/yt-transcript-cli.git
cd yt-transcript-cli
  1. Install dependencies
bun install
  1. Build the project
bun run build
  1. Use the install script
chmod +x install.sh
./install.sh

This will copy the executable to ~/.local/bin/. Make sure this directory is in your PATH.

Usage

Basic usage

yt-transcript-cli https://www.youtube.com/watch?v=dQw4w9WgXcQ

Specify language

yt-transcript-cli https://www.youtube.com/watch?v=dQw4w9WgXcQ fr

Output to file

yt-transcript-cli https://www.youtube.com/watch?v=dQw4w9WgXcQ > transcript.txt

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

About

A lightweight CLI tool that extracts and displays transcripts from any YouTube video using Bun runtime.

Topics

Resources

License

Stars

Watchers

Forks