OnSive.Netflix.PersonalData 2.0.0

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

Install-Package OnSive.Netflix.PersonalData -Version 2.0.0
dotnet add package OnSive.Netflix.PersonalData --version 2.0.0
<PackageReference Include="OnSive.Netflix.PersonalData" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OnSive.Netflix.PersonalData --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OnSive.Netflix.PersonalData, 2.0.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

GitLab

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:
    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:
The data is loaded and cached on access.
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.
    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...
The csv files are fine, but all data in the .txt files are one Json object per line.
This means that I have to deserialize every line in a .txt file one by one.

Third Party

GitLab

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:
    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:
The data is loaded and cached on access.
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.
    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...
The csv files are fine, but all data in the .txt files are one Json object per line.
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 32 1/19/2021
1.0.2.1 74 11/25/2020
1.0.2 72 11/25/2020
1.0.1 103 11/9/2020
1.0.0 161 10/5/2020