Read-only mirror of https://github.com/epfl-dlab/patronage_youtube — EPFL Data Science & AI Lab (dlab). Issues & pull requests at the source.
  • Jupyter Notebook 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Francis Murray d90b7cb41c update README
2023-03-26 17:41:54 +02:00
scripts set data folders paths to global variables 2022-05-05 16:58:11 +02:00
exploratory_data_analysis.ipynb output of EDA 2022-06-10 21:37:55 +02:00
patronage_youtube.ipynb print outputs 2022-06-10 23:10:03 +02:00
preprocessing.ipynb clean up preprocessing notebook 2022-06-10 21:34:22 +02:00
README.md update README 2023-03-26 17:41:54 +02:00

Characterizing Patronage on YouTube

Project description

This project explores the relationship between content creation and patronage. We try to find out if potential gains of models such as Patreon incentivize content creators to produce more videos and grow their subscription base. Thanks to the YouNiverse dataset [Ribeiro and West 2020], this can be analyzed in detail: The audience engagement can be measured by the number of views per video, the productivity of the content creators can be evaluated with the number of videos per week posted by the channel, and the interaction with the customers can be measured by the number of comments per videos.

Credentials

Data

YouNiverse dataset

YouNiverse is a large collection of channel and video metadata from English-language YouTube. YouNiverse comprises metadata for over 136k channels and 72.9M videos published between May 2005 and October 2019, as well as channel-level time series data of weekly subscriber and view counts.

The YouNiverse dataset contains five files:

  • df_channels_en.tsv.gz: Channel metadata.
  • df_timeseries_en.tsv.gz: Channel-level time series.
  • yt_metadata_en.jsonl.gz: Raw video metadata.
  • youtube_comments.tsv.gz: User-comment matrices.
  • youtube_comments.ndjson.zst: Raw comments.

Graphtreon dataset

The Graphtreon dataset was crawled by Manoel Ribeiro, and contains three files:

  • creators.csv: List with all creator names.
  • final_processed_file.jsonl.gz: All Graphteon time series.
  • pages.zip: Raw HTML of the pages in Graphteon.

Code organisation

EDA

Notebook: exploratory_data_analysis.ipynb

    1. Files and brief explanation of those
    1. Exploratory Data Analysis (EDA)
    • 1.1. YouNiverse dataset
      • 1.1.1 Channel metadata
      • 1.1.2 YouTube Channels time-series data
      • 1.1.3 Raw video metadata
      • 1.1.4 user-comment matrices
      • 1.1.5 raw comments
    • 1.2. Graphtreon dataset
      • 1.2.1 List with all creator names.
      • 1.2.2 All graphtreon time-series
      • 1.2.3 Raw html of the pages in graphteon.

Preprocessing

Notebook: preprocessing.ipynb

    1. Preprocess data
    • 1.1. Preprocess YouTube metadata
    • 1.2 Link YT channels and Patrons
    • 1.3 Filter YouTube timeseries - Restrict YouTube channels (4 filters)
    • 1.4 Preprocess Graphtreon timeseries

Characterizing Patronage on YouTube

Notebook: patronage_youtube.ipynb

    1. Load data
    • 1.0 Preprocessing
    • 1.1. Load YouTube metadata
    • 1.2 Load "Link" dataframe (channel/patreon)
    • 1.3 Load YouTube timeseries
    • 1.4 Load Graphtreon dataset
    • 1.5 Select top patreon accounts (> 200 patrons)
    1. Jointly examine time series related to patronage and YouTube statistics
    • 2.1 Detecting bursts (breakpoints) of incoming patrons
    1. Granger causality
    • 3.1 Compute Granger Tests
    • 3.2 Granger causality plots
    1. Observational Study
    • 4.1 Select "treated" accounts
    • 4.2 Select "control" accounts
    • 4.3 Naive analysis
    • 4.4 Propensity Score Matching (PSM)
    • 4.5 Compute difference between means of the different periods
    1. Analyze balanced dataset

Scripts

Notebook: scripts.ipynb

    1. Filter YouTube metadata containing patreon id
    1. Filter Graphtreon to keep only records which patreon id exists the YouTube metadata