Query WikiLovesAfrica Images and How Often They Were Viewed

J. Nathan Matias, January 2019

PROBLEM WITH THIS SCRIPT: It uses the page view API rather than media view information. TODO: Review the documentation here and update the code: https://wikitech.wikimedia.org/wiki/Analytics/Data_Lake/Traffic/Mediacounts

Load List of Past WikiLovesAfrica Images by Year

Load Count of Pages that Use a WikiLovesAfrica Image

Load View Count of WikiLovesAfrica Images

Write Image-level data to CSV

Aggregate Author-Level Data

Create author-level aggregates of image count, image usage, and image view count

Write author statistics to file