Illustrate Netflix profiles with a Go program

Programming Snapshot – Go Charting

© Lead Image © Tatiana Venkova, 123RF.com

© Lead Image © Tatiana Venkova, 123RF.com

Article from Issue 291/2025
Author(s):

Netflix keeps track of who watches which program and when. In this month's column, Mike Schilli whips up a Go program to analyze and draw fancy graphs of his viewing habits.

How does Netflix know exactly which movie I want to watch next? As a streaming service, the movie juggernaut has access to my viewing habits, and, thanks to different profiles, it knows just what the people in my household have been watching.

Rather than withholding information, Netflix lets its users peek into their own history. If you select the Profiles menu and then the respective user profile in Viewing Activity, you will find a list (Figure 1) of all the films you have ever watched, including the viewing date and time. The list can even be conveniently downloaded as a CSV file (Figure 2). Each line in the file contains the movie or series title and the screening date in your home cinema (Figure 3).

Tight Lipped for Privacy

I remember there used to be more detailed data available, including which videos users had clicked on but paused and aborted shortly afterwards. According to Netflix, the details fell victim to data protection policies. Be that as it may, a complete list of all the films you have ever watched (with timestamps) at least provides a useful starting point for all kinds of statistical analysis.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Netflix on Linux

    The online video store Netflix delivers video on demand to many countries. Although the service offers Linux-friendly HTML5 streams, you have to coax Netflix into actually serving them up.

  • Perl: YouTube Statistics

    Hobby YouTuber Mike Schilli is interested in whether his videos go viral. What better way to check skyrocketing viewer numbers than letting a Perl script analyze the daily trends and watch for unexpected upswings?

  • Downloading Web Video

    With the right tools, you can store YouTube movies on your hard disk and view them when Internet access is unsatisfactory or unavailable.

  • maddog's Doghouse

    As unemployment claims surge, US computer systems are straining under the increased load. In this column, maddog weighs in on COVID-19 and COBOL.

  • Pipelight: Using Silverlight on Linux

    Video-on-demand services often don't play well with Linux because they depend on Microsoft's Silverlight browser plugin. Luckily, you can call on the Wine offshoot Pipelight to rescue your next home movie night.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News