Skip to content

Quick tool to grab the transcripts from YT and dump them to csv

License

Notifications You must be signed in to change notification settings

Graf3x/ThorsCodex.Transcripts.to.CSV

Repository files navigation

ThorsCodex.Transcripts.to.CSV

Quick tool to grab transcripts from YouTube and dump them to CSV.

Installation

  1. Clone the repository.
  2. Install the required NuGet packages:
	dotnet add package McMaster.Extensions.CommandLineUtils
	dotnet add package YoutubeExplode
	dotnet add package CsvHelper
  1. Build the project:
	dotnet build

Usage

This tool fetches videos from a specified YouTube channel, processes the closed captions, and saves them as CSV files. It uses command line arguments to specify the channel URL, output directory, length cutoff for videos, and YouTube handle name.

Command Line Arguments

  • -u or --url: The URL of the YouTube channel (default: https://www.youtube.com/@PirateSoftware)
  • -o or --output: The output directory for transcripts (default: S:\\Transcripts)
  • -l or --length: The length cutoff for videos in hh:mm:ss format (default: 01:03:00)
  • -h or --handle: The YouTube handle name (default: PirateSoftware)

Example

dotnet run --url "https://www.youtube.com/@PirateSoftware" --output "S:\Transcripts" --length "01:03:00" --handle "PirateSoftware"

Contributing

Feel free to submit issues or pull requests if you have any improvements or bug fixes.

About

Quick tool to grab the transcripts from YT and dump them to csv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published