Skip to content

Convert xml output by 'SMS Backup & Restore' to single *.xlsx, including images if available.

Notifications You must be signed in to change notification settings

prettydeep/sms-log-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

sms-log-convert

Convert *.xml output by 'SMS Backup & Restore' to single *.xlsx, including images if available.

Install

*only tested with Python 3.8

# Clone the repo
git clone https://github.com/prettydeep/sms-log-convert.git
cd sms-log-convert/

# Install openpyxl
pip install openpyxl

Convert call logs and sms/mms logs from *.xml to *.xlsx

python [call/sms]-log-convert.py --input_file /path/to/input.xml --output_file /path/to/output.xlsx

If you have issues with .mpo KeyError

pip show openpyxl

Modify the [Location]/openpyxl/packaging/manifest.py so that the function below includes the second line:

def _register_mimetypes(self, filenames):
        mimetypes.add_type('image/mpo', '.mpo')
        for fn in filenames:
            ext = os.path.splitext(fn)[-1]
            if not ext:
                continue
            mime = mimetypes.types_map[True][ext]
            fe = FileExtension(ext[1:], mime)
            self.Default.append(fe)

About

Convert xml output by 'SMS Backup & Restore' to single *.xlsx, including images if available.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages