OnSive.Netflix.PersonalData 1.0.2.1

Small libary to parse all data from a Netflix personal data export.

There is a newer version of this package available.
See the version list below for details.
Install-Package OnSive.Netflix.PersonalData -Version 1.0.2.1
dotnet add package OnSive.Netflix.PersonalData --version 1.0.2.1
<PackageReference Include="OnSive.Netflix.PersonalData" Version="1.0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OnSive.Netflix.PersonalData --version 1.0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OnSive.Netflix.PersonalData, 1.0.2.1"
For F# scripts that support #r syntax, copy this into the source code to reference the package.
// Install OnSive.Netflix.PersonalData as a Cake Addin
#addin nuget:?package=OnSive.Netflix.PersonalData&version=1.0.2.1

// Install OnSive.Netflix.PersonalData as a Cake Tool
#tool nuget:?package=OnSive.Netflix.PersonalData&version=1.0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Get

Install-Package OnSive.Netflix.PersonalData

Usage

  1. Instantiate a new NetflixParser object and pass the path to the exported folder (...\netflix-report).
    1.1 With the netflix-report.zip file

     var netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report.zip");
    

    Note: <br />
    The data preloaded as the zip file will be extracted to a folder within %tmp% and directly deleted afterwards.!

    1.2 With the extracted netflix-report.zip directory

     var netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report");
    
  2. Optionally preload all data

netflixParser.Load();
// or
await netflixParser.LoadAsync();

Note:<br>
The data is loaded and cached on access.<br>
With the .Load(); method, you can preload all data. This will take a few seconds and could be done with a background worker.

  1. After that you're done and can access all informations via the different lists.<br />
    Most properties got the same name like described in the Cover sheet.pdf which is delivered within the netflix-report folder.

Example for printing out all profile names and their creation time:

var netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report");

foreach (var profileItem in netflixParser.Profiles)
{
    Console.WriteLine($"User {profileItem.ProfileName} was created at {profileItem.ProfileCreationtime}.");
}

Q&A

Why is there such a long loading time on some properties??

Netflix was kind enough to provide the data in a wonderful way...<br>
The csv files are fine, but all data in the .txt files are one Json object per line.<br>
This means that I have to deserialize every line in a .txt file one by one.

Third Party

Get

Install-Package OnSive.Netflix.PersonalData

Usage

  1. Instantiate a new NetflixParser object and pass the path to the exported folder (...\netflix-report).
    1.1 With the netflix-report.zip file

     var netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report.zip");
    

    Note: <br />
    The data preloaded as the zip file will be extracted to a folder within %tmp% and directly deleted afterwards.!

    1.2 With the extracted netflix-report.zip directory

     var netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report");
    
  2. Optionally preload all data

netflixParser.Load();
// or
await netflixParser.LoadAsync();

Note:<br>
The data is loaded and cached on access.<br>
With the .Load(); method, you can preload all data. This will take a few seconds and could be done with a background worker.

  1. After that you're done and can access all informations via the different lists.<br />
    Most properties got the same name like described in the Cover sheet.pdf which is delivered within the netflix-report folder.

Example for printing out all profile names and their creation time:

var netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report");

foreach (var profileItem in netflixParser.Profiles)
{
    Console.WriteLine($"User {profileItem.ProfileName} was created at {profileItem.ProfileCreationtime}.");
}

Q&A

Why is there such a long loading time on some properties??

Netflix was kind enough to provide the data in a wonderful way...<br>
The csv files are fine, but all data in the .txt files are one Json object per line.<br>
This means that I have to deserialize every line in a .txt file one by one.

Third Party

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 57 1/19/2021
1.0.2.1 109 11/25/2020
1.0.2 107 11/25/2020
1.0.1 144 11/9/2020
1.0.0 184 10/5/2020