Prakhar Sharma -
Adrita Bhattacharya -
A command line tool to convert MBOX file to JSON.
Explore the docs » (Currently NA)
View Demo
·
Report Bug
·
Request Feature
Table of Contents
A small package that converts MBOX files to JSON. Also includes functionality to extract attachments.
There are 2 ways to install this tool.
Make sure you upgrade pip
before moving on.
All the required dependencies are in requirements.txt
which would be installed at the time of running the setup.
pip install --upgrade pip
1. Install from PyPI
pip install mbox-to-json
-
Download the repository as zip. Unzip.
-
cd
to the repository folder -
Run this command
pip install .
-
Help Function
mbox-to-json -h
-
Most basic conversion from MBOX to JSON. Just provide the file path. Output JSON file would be in the same location as the input file.
mbox-to-json /Users/prakhar/downloads/random_file.mbox
-
Use
-a
flag to extract attachments. The files would be available ininput_file_directory/attachments
mbox-to-json /Users/prakhar/downloads/random_file.mbox -a
-
Use
-c
flag to convert to CSV insted of JSON. Output CSV file would be in the same location as the input file.mbox-to-json /Users/prakhar/downloads/random_file.mbox -c
-
Use
-o
to specify the output file location. Make sure to provide the file name too, with the extension JSON (or CSV)mbox-to-json /Users/prakhar/downloads/random_file.mbox -o /Users/prakhar/downloads/random_output.json
For more examples, please refer to the Documentation
- TBA
Distributed under the MIT License. See LICENSE.txt
for more information.
LinkedIn - Prakhar Sharma, Adrita Bhattacharya
Github - PS1607, adritabhattacharya
Google Developer - PS1607