This python script fixes your Google Contacts by adding appropriate Country Code for you. (See here for more info : Country Code).
The international dialling code for your country is prepended to your contacts numbers intelligently where ever required.
This cleaning/boiling of numbers makes your phonebook country independent and clean.
For eg. A number from my contact book (I am from India), if reads - 9812343242/09812343242, it would be converted to +919812343242.
- Go to Google Contacts.
- Click on
- Choose :
Google CSV format (for importing into a Google account)
Exportand save the file given by Google.
Let this file be
Warning: Save this file somewhere safe. If anything goes wrong, you can always reset your contacts using this.
Now run the script on this file and save the output. Let this output be
- Delete all your contacts from Google Contacts.
- Click on
google_final.csvfrom file chooser.
You are done.!! Have a look at the changes and enjoy the beauty!! :)
Thanks to libphonenumber and the creator of it's python port here libphonenumber-python.
- Python 3
Have any suggestions or just wanna thank me for this? Mail me at
firstname.lastname@example.org. I would love to hear from you. :)