Giter Site home page Giter Site logo

ahrimdon / apple-contact-export Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eliasayoub/contacts-extraction-from-itunes-backup-

0.0 1.0 0.0 6 KB

Python script that extracts contacts from iTunes backup (iOS 13) and saves them to a csv file.

Python 100.00%

apple-contact-export's Introduction

apple-contact-export

Python script to extract contacts from an iTunes backup (iOS 13) and save them as a CSV file. Update the file path (line 13) to where your iTunes backup is located, typically at C:\Users(username)\AppData\Roaming\Apple Computer\MobileSync\Backup. Look for the file named 31bb7ba8914766d4ba40d6dfb6113c8b614be442. You can also customize the output file's path and name as needed.

Improvements

  • Use Context Managers for File and Database Operations: This ensures that resources are properly managed and released, even if an error occurs.

  • Streamline Database Querying and Data Handling: Instead of multiple lists, use a single list of dictionaries to store the contact information. This simplifies data handling and makes the code more readable.

  • Parameterize Database Path: Instead of hardcoding the database path, it's better to use a function parameter or command-line argument. This makes the script more flexible.

  • Efficient Data Writing to CSV: Use the CSV writer directly in the data processing loop to avoid holding all data in memory.

  • Improve Comments and Documentation: Clear comments and documentation help in understanding the purpose and functionality of the script.

  • Error Handling: Add basic error handling for database and file operations.

apple-contact-export's People

Contributors

ahrimdon avatar eliasayoub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.