Convert Google Voice SMS data from Takeout to .xml suitable for use with SMS Backup and Restore. Input data is a folder of SMS .html files from Google Takeout.
Working as of 2020-04-22.
- Go to https://contacts.google.com
- Export all Google Contacts
- Delete all Google Contacts (this is required so that numbers show up for each thread, otherwise Takeout will sometimes only have names. If you want to skip this step, you can, but some messages won't be linked to the right thread if you do. Note that this may remove Contact Photos on iOS if you don't pause syncing on your iOS device)
- Get Google Voice Takeout and Download
- Restore contacts to your account
- Download this script to your computer
- Extract Google Voice Takeout and move the folder into the same folder as this script
- Open terminal
- Install pip (sudo easy_install pip)
- sudo pip install virtualenv
- virtualenv sms
- pip install phonenumbers BeautifulSoup4 python-dateutil
- python sms.py
- Copy the file "gvoice-all.xml" to your phone, then restore from it using SMS Backup and Restore