Giter VIP home page Giter VIP logo

sms-analysis's Introduction

sms-analysis

Python/IPython code to analyze one's text messages. Intended to work out of the box.

Author: Mike Dezube <michael dezube at gmail dot com>

Overview of code

This code will:

  1. Find your latest iPhone sync (currently only supports doing this automatically on Macs), for PCs edit table_connector.py to find the file
  2. Load up the messages database and address book database locally
  3. Merge the databases together into fully_merged_messages_df which you can freely play with
  4. Visualize a word tree of your text messages with a specific contact
  5. Show you who you text the most

Note: none of your data is modified nor sent anywhere during execution

Dependencies

  1. Pandas, see Pandas install
  2. IPython follow Pandas install link for details how to install this as well
  3. An iPhone, having synced with this computer
  4. If running on a Mac, code will work out of the box. If running on a PC, change the variable BASE_DIR in table_connector.py to the directory of your backups
    • This post seems to specify the location of backups on Windows.
  5. Internet connection to load the google visualization API, it's a very small file though

Quick start

  1. Start the IPython notebook like so: jupyter notebook sms_analysis.ipynb
  2. Under the menu choose Cell --> Run All
  3. Edit the CONTACT_NAME and ROOT_WORD in the last cell to alter the visualization and then re-run that cell, under menu choose: Cell --> Run Cell

Contact michaeldezube at gmail com with questions

Example word tree:

sms-analysis's People

Contributors

mdezube avatar micahstubbs 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.