Skip to main content

Parser and GUI viewer of chatsync/*.dat files from the Skype profile directory

Skype stores conversations locally in two places. One is a SQLite database file, for which there are several convenient viewers out there. Another is a set of dat files in the chatsync subdirectory of the profile. The latter contain, among other things, the “removed” messages along with all the edits. Unfortunately, the format of those dat files does not seem to be documented anywhere, and the readers are scarce.

The package contains a crude file format parser for the dat files in the chatsync directory, created based on the hints, given by user kmn in this discussion.

As the format specification used is not official and incomplete, the parser is limited in what it can do. It may fail on some files, and on other files will only be able to extract messages partially.

In addition, the package contains a simple wx-based GUI tool for searching the log files visually.

http://fouryears.eu/wp-content/uploads/2015/01/skype-chatsync-viewer.png

Installation

The easiest way to install most Python packages is via easy_install or pip:

$ easy_install skype_chatsync_reader

If you want to use the GUI tool, you will also need to install wxPython 2.8 or later (it is not installed automatically).

A standalone executable version of the GUI tool for Windows can be downloaded here.

Usage

If you want to parse chatsync files programmatically, check out the SkypeChatSyncScanner and SkypeChatSyncParser classes in skype_chatsync_reader.scanner. A typical usage example is:

with open(dat_file, 'rb') as f:
    s = SkypeChatSyncScanner(f)
    s.scan()
    p = SkypeChatSyncParser(s)
    p.parse()

Then use p.timestamp, p.participants, and p.conversation to read out the messages. There convenience function parse_chatsync_profile_dir will scan through all the dat files in the provided chatsync dir and parse all of them (which can be parsed).

If you want to use the GUI tool, simply run the script:

$ skype-chatsync-viewer

which is installed into your python’s scripts directory together with the package.

Issues

This is a very crude implementation, written up in a single evening for fun. It is not meant to be production-quality software. There are numerous known and unknown issues. I do not plan to maintain this actively. Feel free to contribute via Github.

Metadata

Release files for skype-chatsync-reader 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skype-chatsync-reader 0.1
File Size Uploaded
skype-chatsync-reader-0.1.zip 16.7 kB Details

Release files / skype-chatsync-reader-0.1.zip

Download URL skype-chatsync-reader-0.1.zip
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
37382e210f01997b0c71e8caacaa8017cd59d2abcb336167897a324dd4fba1b7
BLAKE2b-256 checksum
How to use checksums
158529231b122c1602aa72e8764db4453ce81afa7723ca12e4954690d5bb4c07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page