Skip to content

Instantly share code, notes, and snippets.

@jcayzac
Created June 19, 2013 02:37
Show Gist options
  • Save jcayzac/5811295 to your computer and use it in GitHub Desktop.
Save jcayzac/5811295 to your computer and use it in GitHub Desktop.

Exporting Skype history (mac)

$ cd /tmp
# The app doesn't handle paths with spaces so we make a symlink with no space in its path
$ ln -s ~/Library/Application\ Support appsupport
$ APPDATA=/tmp/appsupport java -jar /path/to/exportskype-1.0.4.jar
  • This will create lots of XML files in /tmp/output. The strings are URI-encoded. If you want to make the XML files human readable you can use NodeJS to convert garbled SOURCE.xml to readable DEST.xml this way:
var fs = require('fs'), src = fs.readFileSync('SOURCE.xml', 'utf-8'), re = /"([^"]*?)"/g
fs.writeFileSync('DEST.xml',  src.replace(re, function(m, g) { return '"' + decodeURIComponent(g) + '"' }))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment