Skip to content
This repository has been 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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Contributors 4

  •  
  •  
  •  
  •  

Languages