Open adamlaz opened 4 years ago
+1
iMessage is a great idea, I can take a look at how you can get your data from the app. Unfortunately, I don't have an iPhone, so I won't be able to easily test how well it works. :/
sweet, I know iMessages are natively stored in a SQL database chat.db
file. I'd imagine there's a bit of sql you could to run on it to generate a csv that looks the same as what whatsapp gives you. I've played around with it before and can give it a quick go if you don't mind?
If you have a Macbook, there is a file ~/Library/Messages/chat.db that has the entire chat history stored on the computer of all conversations, but mine is over 150 MB and looks like it would be difficult to parse. Likewise, there is an Archives folder with all recorded conversations, but it is sorted by date, not recipient, and is fragmented.
You can also export conversations as a PDF, but they are essentially screenshots of the conversations and also only save what has been loaded on the app, so you would have to scroll to the top of the conversation to save the entire thing.
I would guess working with chat.db is the best way (it can be opened as SQLite), but it's far from ideal. I think it could be done if someone were ambitious enough to tackle it. Again, this is only for Mac Messages, though.
@ben9583 so since everything is local, it shouldn't take a crazy long time to open a 150 MB file in the browser, and then filtering for conversation participants would be a breeze. I agree that that's the best option. Thanks for the analysis
Here's some inspiration - https://github.com/dsouzarc/iMessageAnalyzer
I'll take a look at this thread later after work - definitely seems like it's pretty straightforward to get iMessage parsed.
Theres also this repo for extracting imessages
super cool tool! Can you help me understand format/sytax of an export file that can be ingested? Would love to run some of my iMessage conversations through this.