BrunoZell.WhatsAppParser
1.0.1
Parses exported chat histories from WhatsApp chat client.
Install-Package BrunoZell.WhatsAppParser -Version 1.0.1
dotnet add package BrunoZell.WhatsAppParser --version 1.0.1
<PackageReference Include="BrunoZell.WhatsAppParser" Version="1.0.1" />
paket add BrunoZell.WhatsAppParser --version 1.0.1
#r "nuget: BrunoZell.WhatsAppParser, 1.0.1"
WhatspApp chat history parser
A light-weight C# library that parses exported chat histories from WhatsApp.
// Create a parser from an exported chat history
var parser = new Parser("chat.txt");
// Enumerate all messages in that history file
foreach (var message in parser.Messages()) {
Console.WriteLine($"{message.Timestamp:yyyy-MM-dd HH:mm} {message.Sender}: {message.Content}");
}
Parser.Messages
is an enumerator, that means it will only read that many messages as you really need by leveraging the power of Linq.
It will return Message
objects. They have three properties:
- Timestamp The point in time the message was sent down to the minute.
- Sender String representation of the message author. This can be the telephone number or the contact name behind this number.
- Content The actual message sent by the sender. This might be multi-line.
Be aware that history entries like encryption information or group invitations are ignored when parsing.
WhatspApp chat history parser
A light-weight C# library that parses exported chat histories from WhatsApp.
// Create a parser from an exported chat history
var parser = new Parser("chat.txt");
// Enumerate all messages in that history file
foreach (var message in parser.Messages()) {
Console.WriteLine($"{message.Timestamp:yyyy-MM-dd HH:mm} {message.Sender}: {message.Content}");
}
Parser.Messages
is an enumerator, that means it will only read that many messages as you really need by leveraging the power of Linq.
It will return Message
objects. They have three properties:
- Timestamp The point in time the message was sent down to the minute.
- Sender String representation of the message author. This can be the telephone number or the contact name behind this number.
- Content The actual message sent by the sender. This might be multi-line.
Be aware that history entries like encryption information or group invitations are ignored when parsing.
Dependencies
This package has no dependencies.
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.