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" />
paket add OnSive.Netflix.PersonalData --version 2.0.0
#r "nuget: OnSive.Netflix.PersonalData, 2.0.0"
// Install OnSive.Netflix.PersonalData as a Cake Addin
#addin nuget:?package=OnSive.Netflix.PersonalData&version=2.0.0
// Install OnSive.Netflix.PersonalData as a Cake Tool
#tool nuget:?package=OnSive.Netflix.PersonalData&version=2.0.0
Get
Install-Package OnSive.Netflix.PersonalData
Usage
Instantiate a new
NetflixParser
object and pass the path to the exported folder (...\netflix-report
).
1.1 With thenetflix-report.zip
filevar 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
directoryvar netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report");
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.
- After that you're done and can access all informations via the different lists.
Most properties got the same name like described in theCover sheet.pdf
which is delivered within thenetflix-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
- CsvHelper v21.0.0 [Apache-2.0] https://joshclose.github.io/CsvHelper/
- Newtonsoft.Json v12.0.3 [MIT] https://www.newtonsoft.com/json
- Icon made by Freepik from www.flaticon.com
Get
Install-Package OnSive.Netflix.PersonalData
Usage
Instantiate a new
NetflixParser
object and pass the path to the exported folder (...\netflix-report
).
1.1 With thenetflix-report.zip
filevar 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
directoryvar netflixParser = new NetflixParser("C:\Users\My_User\Downloads\netflix-report");
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.
- After that you're done and can access all informations via the different lists.
Most properties got the same name like described in theCover sheet.pdf
which is delivered within thenetflix-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
- CsvHelper v21.0.0 [Apache-2.0] https://joshclose.github.io/CsvHelper/
- Newtonsoft.Json v12.0.3 [MIT] https://www.newtonsoft.com/json
- Icon made by Freepik from www.flaticon.com
Dependencies
-
.NETCoreApp 2.1
- CsvHelper (>= 21.0.0)
- Newtonsoft.Json (>= 12.0.3)
-
.NETCoreApp 3.1
- CsvHelper (>= 21.0.0)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.5
- CsvHelper (>= 21.0.0)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.6.2
- CsvHelper (>= 21.0.0)
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.8
- CsvHelper (>= 21.0.0)
- Newtonsoft.Json (>= 12.0.3)
-
net5.0
- CsvHelper (>= 21.0.0)
- Newtonsoft.Json (>= 12.0.3)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.