Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattrltrent/imessage_analytics
https://github.com/mattrltrent/imessage_analytics
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattrltrent/imessage_analytics
- Owner: mattrltrent
- Created: 2023-12-18T05:38:56.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-18T05:39:31.000Z (11 months ago)
- Last Synced: 2023-12-18T06:33:27.278Z (11 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## iMessage analytics
A small script for personal use.
### Quick start
Run this in your terminal (obviously replacing the phone number with the one you want to investigate):
```sh
cd ~/Library/Messages ; sqlite3 chat.db "SELECT text FROM message JOIN handle ON message.handle_id = handle.ROWID WHERE handle.id = '+12345678910' AND text IS NOT NULL ORDER BY message.date ASC;" > data.txt
```This will then output the entire locally-stored conversation into a file at the same location the command was executed called `output.txt`. Bring this file to the same level as the `main.py` file.
Run `pip install -r requirements.txt`.
Add a `.env` file and set the `MATCH` variable to be the regex you want to match against.
Run `python main.py`.