Provides functionality to read messaging/chat application exports.
Project description
pychatlib
Provides functionality to read messenger/chat application exports.
Installation
pip install pychatlib
Usage
Suppose you have exported your group conversation in LINE to a .txt file (which is what LINE does when exporting). If you want to read the .txt file into Python, you can use the following commands.
from chatlib.line import LineChatData
line = LineChatData("E:/my_line_export.txt")
The resulting object has following attributes:
-
database: this is the most interesting attribute. It contains the data of the conversation. In its current form, it is simply a list of four lists:_date_time: denotes time of a record_sender: denotes a sender, or a person that is involved in the creation of the record_event: denotes an event, i.e. a record which is not a chat, e.g. when someone joins the group or unsent a message._message: denotes the chat.
-
n_entry: how many records are listed. -
start_date: earliest record's time. -
end_date: most recent record's time. -
participants: set of all sender names in the group. If someone is in the group but does not have their name recorded on the export file at all, their name will not be here.
Information regarding metadata of the object can be obtained via
print(line)
which will display whatever is available out of these things (not all applications provide these info on their export file):
- What application exports the file
- When the file is exported
- What name is the personal/group/room chat
- How many records are available
Applications
Currently this package is able to read these applications' exports:
- LINE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pychatlib-0.1.0.tar.gz.
File metadata
- Download URL: pychatlib-0.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b2addd2bfa975ea373d43c3602450b8d73f669f2872c2b915205e497c7f520c
|
|
| MD5 |
e7330a3dd30bf8c31aa541d9f2bc7e0b
|
|
| BLAKE2b-256 |
4049133f6e6751adf3bf6a51497203fc6544689e67808925d3fd579a9bc6c5f4
|
File details
Details for the file pychatlib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pychatlib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46954806af1b3037cf81b79de8f26bc203572b9bd3d20d4e9f6bdae7f00062c2
|
|
| MD5 |
a6e322ea675cb7b4c58600eacd174372
|
|
| BLAKE2b-256 |
43adfb0c38f8d175c6ca2578dd00f604a7b33e4e2b7376975c00b9978e9790e1
|