A toolkit to use the gmail API to download and analyze emails
-
Navigate to the Google Developer console and create a new project, get service account credentials for that project. Save the json file it generates as
credentials/credentials.json
. -
Copy
keys.json.example
intokeys.json
and fill out the oauth token and key. -
Install packages
pipenv install
-
Download emails into a sqlite database called
emails.db
python downloader.py
-
Run the jupyter notebook for analysis
pipenv run jupyter notebook EmailAnalysis.ipynb
pipenv install -e [email protected]/dmil/EmailAnalysis.git#egg=emailanalysis
pipenv install -e [email protected]/dmil/EmailAnalysis.git@COMMIT_SHA#egg=emailanalysis
where COMMIT_SHA
is the hash of the commit you want to install from