Add README and pip requirements

This commit is contained in:
Jacob Manning 2018-07-01 10:51:23 -04:00
parent 0997e44613
commit ca145bb6ec
2 changed files with 40 additions and 0 deletions

37
README.md Normal file
View file

@ -0,0 +1,37 @@
# hangouts-parser
This repository parses conversation data from Google Hangouts and gives
diagnostics on the number of messages in conversations. I'm working on adding
support for visualizations based on the parsed data for more interesting
graphical views of the data.
## Usage
1. Clone this repository
2. Download your hangouts data
+ Navigate to [Google Takeout](https://takeout.google.com/settings/takeout)
+ Choose "Select None" and manually select Hangouts
+ Download the data in zip format and move the `Hangouts.json` file into the `raw` folder in this repository
3. Install dependencies via `pip`
+ `pip install -r requirements.txt`
+ No dependencies are required for the `parser.py` script, but `visualize.py` will require the dependencies
4. Run the parser
+ **Note:** if you did not place your hangouts data as `raw/Hangouts.json` you can specify the path to the `.json` file as an argument to the `parser.py` script via the `-f` flag
```bash
python parser.py
```
5. **Coming soon** Run the visualization
+ The `<conversation_id>` can be found in the output of the `parser.py`
script
```bash
python visualize.py -f output/<conversation_id>.pkl
```
### License
This code is freely available under the GNU Public License (GPL).
### Privacy notice
> All of the data processing in these scripts happens locally on your computer. The data you provide to the script is **NOT** uploaded to an external server. Feel free to examine the code if you are concerned.
### Acknowledgements
> This repository was inspired by [MasterScrat/Chatistics](https://github.com/MasterScrat/Chatistics). Chatistics can parse Facebook Messenger and Telegram data, but not Hangouts group messages. I originally intended to contribute to that repository and hadd Hangouts group message support, but my design drifted far from the existing design in that repository so I created a new project. Shoutout to MasterScrat for great work and thanks for the inspiration!

3
requirements.txt Normal file
View file

@ -0,0 +1,3 @@
ggplot
matplotlib
pandas