Small research for blog post about Youtube how tos survival
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pageviews_data
.env.template
.gitignore
0_shared.rb
1_markdown_links.rb
2_pageviews_data.rb
3_plot_survival_curves.rb
4_filter_exceptions.rb
5_survival_rates.rb
Gemfile
Gemfile.lock
README.md
raw_data.png
raw_data_no_spikes.png
survival_curves.png

README.md

Youtube how tos survival analysis

Youtube survival curves

Setup

Create Youtube API key as described here.

Create .env file with this API key as shown in .env.template:

YT_API_KEY=BIzaXiO_1J4s7vukMpFyjODxDo87l9-bR1oKcnx

Install necessary libraries:

bundle install

You are ready to go:

ruby 1_markdown_links.rb
ruby 2_pageviews_data.rb
ruby 3_plot_survival_curves.rb
ruby 4_filter_exceptions.rb
ruby 5_survival_rates.rb