Skip to content

Instantly share code, notes, and snippets.

@phord
phord / hangout-filter.py
Last active September 28, 2019 02:04 — forked from kylemcdonald/hangout-filter.py
This script will process the json dump from Google Takeout to extract all messages sent between two people. Before extracting the conversation you need to know the conversation_id.
# example:
# python hangout-filter.py Hangouts.json Ugw3axd-nDFKCvFsDi94AaABAQ | sort | tr '\n' ' ' > words.txt
# !/usr/bin/env python
import json
import argparse
import dateutil.parser
import re
import time