Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
/ trudeau Public archive

Parses captions for PM Trudeau's daily speeches and presents them in a more human readable format

Notifications You must be signed in to change notification settings

jules2689/trudeau

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Julian Nadeau
Jul 15, 2020
0f5ad56 · Jul 15, 2020
Apr 22, 2020
Jul 15, 2020
Jun 29, 2020
May 27, 2020
Apr 22, 2020
Apr 22, 2020
Apr 22, 2020
May 26, 2020
Apr 22, 2020
May 30, 2020
Apr 21, 2020

Repository files navigation

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.

About

Parses captions for PM Trudeau's daily speeches and presents them in a more human readable format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages