Skip to main content

A CLI tool to fetch and display YouTube video transcripts.

Project description

YouTube Transcript CLI

License

Welcome to the YouTube Transcript CLI! This tool allows you to fetch and display transcripts of YouTube videos right from your terminal. Whether you're a developer, researcher, or just curious, this tool has got you covered!

Features

  • Fetch Transcripts: Get transcripts for any YouTube video.
  • Multiple Languages: Specify your preferred language for the transcript.
  • Save to File: Save the transcript to a file for later use.
  • No Print Option: Fetch transcripts without printing them to the terminal.

Installation

To install the YouTube Transcript CLI, simply run:

pip install youtube-transcript-cli

Usage

Once installed, you can use the cap command to fetch transcripts. Here are some examples:

Fetch and Print Transcript

cap https://www.youtube.com/watch?v=Y-KztRvRyl0

Fetch and Save Transcript to a File

cap https://www.youtube.com/watch?v=Y-KztRvRyl0 --save transcript.txt

Fetch Transcript in a Different Language

cap https://www.youtube.com/watch?v=Y-KztRvRyl0 --languages es

Fetch Transcript Without Printing to Terminal

cap https://www.youtube.com/watch?v=Y-KztRvRyl0 --save transcript.txt --no-print

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Made with ❤️ by NickMystic (https://github.com/ghostofpokemon)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtube_transcript_cli-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

youtube_transcript_cli-0.1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page