Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 771 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 771 Bytes

Trudeau

Parses CBC Youtube videos to extract subtitles. This is then formatted nicely for human consumption

These notes are compiled and summarized by a human here.

To Run

  1. Make sure a non-system Ruby is installed (I'm using 2.6.x)
  2. Run bundle install to install requires gems using Bundler
  3. Run ruby captions.rb -h
  4. Run ruby captions.rb -v VIDEO_ID to parse a single video to STDOUT (Video ID is in the youtube URL. E.g. https://www.youtube.com/watch?v=VIDEO_ID)
  5. Run ruby captions.rb -t TOKEN where token is a Google API token with the Youtube Data API enabled. This will parse the CBC playlist and output all files to the docs folder.