{ "info": { "author": "Ankush Choubey", "author_email": "ankushchoubey@outlook.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Whatsapp-Text-To-Json-Converter\n\nConverts Whatsapp chat files to dictionary or JSON format.\n\n**Works with exports from iPhone and Android. Be sure to mention device.**\n\n## Installation\n\n```pip install whatsapptojson```\n\n## Using Command Line Arguments\n\n```whatsapptojson [OPTIONS]```\n\n```\nusage: whatsapptojson [-h] -f FILE -d DEVICE [-s SAVE] [-v]\n\noptional arguments:\n -h, --help show this help message and exit\n -f FILE, --file FILE chat text file\n -d DEVICE, --device DEVICE\n can be 'iphone' or 'android'\n -s SAVE, --save SAVE path of file/direction to save json, 'default' would\n be same as text file name in same directory\n -v, --verbose Verbose (Print output)\n```\n\n\n## Using Native Python\n\n```whatsapptojson.format()``` - to convert a read text to dictionary\n\n```whatsapptojson.format_file()``` - to read file from text to dictionary/json\n\nbe sure to mention ```device``` attribute correctly ```iphone``` or ```android```.\n\n```python\nfrom whatsapptojson import whatsapptojson\n\n# Converting Text to Dict\noutput = whatsapptojson.format(text = 'string with complete chat data', device = 'android')\n\n# Converting File to dictionary.\noutput = whatsapptojson.format_file(source='source_file_path', device = 'iphone')\n\n# Converting File to dictionary.\noutput = whatsapptojson.format_file(source='source_file_path', device = 'iphone')\n\n### Whatsapp File to Json.\nwhatsapptojson.format_file(source='source_file_path', destination='destination_path.json', device = 'android')\n```\n\n## Sample Export\n\n```json\n{\n \"attachment_extensions\": [\n \"pdf\",\n \"mp4\",\n \"jpg\"\n ],\n \"participants\": [\n \"sender name 1\",\n \"sender name 2\",\n \"sender name n\"\n ],\n \"chats\": [\n {\n \"date\": \"25/03/16 07:03:45 PM\",\n \"message\": \"\u200eMessages to this group are now secured with end-to-end encryption.\",\n \"type\": \"whatsapp meta\"\n },\n {\n \"date\": \"15/08/17 12:27:34 PM\",\n \"message\": \"message for attachment\",\n \"sender\": \"sender name\",\n \"type\": \"attachment\",\n \"attachment\": {\n \"file_name\": \"file_name_with.pdf\",\n \"meta\": \"8 pages\",\n \"extention\": \"pdf\"\n }\n }, {\n \"date\": \"15/08/17 01:37:28 PM\",\n \"sender\": \"sender name\",\n \"message\": \"message\",\n \"type\": \"conversation\"\n },\n ...\n ]\n}\n ```\nEach item in chats could have type of \"whatsapp meta\" or \"attachment\" or \"conversation\".\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ankschoubey/whatsapptojson", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "whatsapptojson", "package_url": "https://pypi.org/project/whatsapptojson/", "platform": "", "project_url": "https://pypi.org/project/whatsapptojson/", "project_urls": { "Homepage": "https://github.com/ankschoubey/whatsapptojson" }, "release_url": "https://pypi.org/project/whatsapptojson/1.0/", "requires_dist": null, "requires_python": "", "summary": "Converts Whatsapp chat files to dictionary or save it in JSON format.", "version": "1.0" }, "last_serial": 4633451, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "bce60b2494804cee983cf241396a91c1", "sha256": "979bc8ce1e4680a825981bc7395021dffd27007f88a656022e0fd8f1f7c6b3e5" }, "downloads": -1, "filename": "whatsapptojson-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bce60b2494804cee983cf241396a91c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6172, "upload_time": "2018-12-25T13:01:54", "url": "https://files.pythonhosted.org/packages/17/0c/fb0c4eb3812baaba4b4969dc82d60b7cf569f2695d1689938c477d64bd3e/whatsapptojson-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61e15a7fe1c19cf865dffe67d430f8b7", "sha256": "7fc5f6847522447fba9b191cd2f7961a9aed9390f4d21effda63f3bfe5cb01d8" }, "downloads": -1, "filename": "whatsapptojson-1.0.tar.gz", "has_sig": false, "md5_digest": "61e15a7fe1c19cf865dffe67d430f8b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4460, "upload_time": "2018-12-25T13:01:56", "url": "https://files.pythonhosted.org/packages/ce/1f/d8d9ef3f303d74c8cda5e5d44eec90a1bc71cd1993368eb1f049421a8186/whatsapptojson-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bce60b2494804cee983cf241396a91c1", "sha256": "979bc8ce1e4680a825981bc7395021dffd27007f88a656022e0fd8f1f7c6b3e5" }, "downloads": -1, "filename": "whatsapptojson-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bce60b2494804cee983cf241396a91c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6172, "upload_time": "2018-12-25T13:01:54", "url": "https://files.pythonhosted.org/packages/17/0c/fb0c4eb3812baaba4b4969dc82d60b7cf569f2695d1689938c477d64bd3e/whatsapptojson-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61e15a7fe1c19cf865dffe67d430f8b7", "sha256": "7fc5f6847522447fba9b191cd2f7961a9aed9390f4d21effda63f3bfe5cb01d8" }, "downloads": -1, "filename": "whatsapptojson-1.0.tar.gz", "has_sig": false, "md5_digest": "61e15a7fe1c19cf865dffe67d430f8b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4460, "upload_time": "2018-12-25T13:01:56", "url": "https://files.pythonhosted.org/packages/ce/1f/d8d9ef3f303d74c8cda5e5d44eec90a1bc71cd1993368eb1f049421a8186/whatsapptojson-1.0.tar.gz" } ] }