GithubHelp home page GithubHelp logo

email-analysis's Introduction

Email Analysis Build Status

Analyzing email traffic with Python

Tidal Wave

My company recently gave me the oppertunity to use MineMyMail to perform an email-wide analysis of my correspondence. Being the data scientist I am, I decided to run some quick analytics to figure out what was going on inside my email; after all, email is a latent social network that is constructed in real time. Being a good Python programmer, I decided to go the whole nine yards and create an application that would work with the CSV output from MineMyMail and generate a statistical report with Jinja2. Being a good open source guy- I created integration tests with Travis CI, a well structured repository, and open sourced it on Github. This is the result.

Usage

This package expects a CSV output from MineMyMail, you can find an example in the fixtures directory. The ordered fields for this CSV file are as follows:

  • Email Address
  • Display Name
  • First Name
  • Middle Name
  • Last Name
  • City
  • Region
  • Country
  • Facebook Link
  • Count
  • First Seen
  • Last Seen

Once you have obtained this file, simply run the Python script in the bin directory as follows:

$ bin/m3stat analyze --output=report.html emails.csv

The output option is the path to where to write the HTML report (by default it will write it to the current working directory with the current timestamp). The only argument is the path to the CSV. To get more options and usage run:

$ bin/m3stat --help

Note, it is highly recommended that you create a virtual environment using virtualenv and install the requirements found in the requirements.txt file before executing this script. If any requirements are not met, an ImportError will be raised by the script.

TODO

  1. Write setup.py script
  2. Include screenshots of report in documentation

email-analysis's People

Contributors

bbengfort avatar

Stargazers

Nathan avatar Jacklam avatar

Watchers

Allen Leis avatar Jenny Kim avatar  avatar  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.