OnSive.Netflix.PersonalData
2.0.0
Prefix Reserved
dotnet add package OnSive.Netflix.PersonalData --version 2.0.0
NuGet\Install-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 the
Cover 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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
-
.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)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.