<commit_before>* CBC_VIDEO
  CBC web player does not provide direct MP4 urls, however they can be queried directly from:
  [[http://feed.theplatform.com/f/h9dtGB/r3VD0FujBumK?%2527%2B%2522&form%3Djson&range%3D1-100][http://feed.theplatform.com/f/h9dtGB/r3VD0FujBumK?%27+%22&form=json&range=1-100]]

  This code simply queries the URL (from the client browser) and parses the results.

* Technology

** Server
  - [[https://nodejs.org/en/][Node js]]
  - [[http://expressjs.com/][Express js]]
  - [[http://paularmstrong.github.io/swig/][swig]] ( templating )

** Client
  - [[http://getbootstrap.com/][bootstrap]]
  - [[https://jquery.com/][jQuery]]
  - [[http://handlebarsjs.com/][handlebars js]] ( templating )

* Install
  While this doesn't HAVE to be run from Node for development reasons it express was used.
  Other reason is to beable to deploy the code to Heroku.

  Typical Node/express setup:

  #+BEGIN_SRC sh
  $ git clone <EMAIL>:jjrh/CBC_VIDEO.git
  $ npm install
  $ ./run_server.sh 3030
  #+END_SRC

  For the most part CDN's have been used for libraries.

* credits / references
  Credit to this person who made tracking down the right URLs much easier.
  http://cbcvideocontentconnector.appspot.com/
  https://github.com/misener/CBC-Content-Connector

  Obviously credit to the CBC! http://www.cbc.ca/player/<commit_msg>couple more touchups to the readme<commit_after>* CBC_VIDEO
  CBC [[http://www.cbc.ca/player/][web player]] does not provide direct MP4 urls, however they can be queried directly from:
  [[http://feed.theplatform.com/f/h9dtGB/r3VD0FujBumK?%2527%2B%2522&form%3Djson&range%3D1-100][http://feed.theplatform.com/f/h9dtGB/r3VD0FujBumK?%27+%22&form=json&range=1-100]]

  This simply queries the URL (from the client browser) and parses the results.

* Technology

** Server
  - [[https://nodejs.org/en/][Node js]]
  - [[http://expressjs.com/][Express js]]
  - [[http://paularmstrong.github.io/swig/][swig]] ( templating )

** Client
  - [[http://getbootstrap.com/][bootstrap]]
  - [[https://jquery.com/][jQuery]]
  - [[http://handlebarsjs.com/][handlebars js]] ( templating )

* Install
  While this doesn't HAVE to be run from Node for development reasons it express was used.
  Other reason is to beable to deploy the code to Heroku.

  Typical Node/express setup:

  #+BEGIN_SRC sh
  $ git clone <EMAIL>:jjrh/CBC_VIDEO.git
  $ npm install
  $ ./run_server.sh 3030
  #+END_SRC

  For the most part CDN's have been used for libraries.

* credits / references
  Credit to this person who made tracking down the right URLs much easier.
  - http://cbcvideocontentconnector.appspot.com/
  - https://github.com/misener/CBC-Content-Connector


  And obviously credit to the [[http://www.CBC.ca][CBC]]!

  - http://www.cbc.ca/player/
{'fraction_non_alphanumeric': 0.1410442349528644, 'fraction_numerical': 0.024655547498187092, 'mean_word_length': 3.8403508771929826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5156831', 'n_tokens_mistral': 1007, 'n_tokens_neox': 955, 'n_words': 246}