theopolisme / hangouts-analyzer

Analyze and visualize your Google Hangouts chat history
https://theopolis.me/hangouts-analyzer
44 stars 10 forks source link

Use download.js library to support large CSV downloads #3

Open emckay opened 7 years ago

emckay commented 7 years ago

Hi @theopolisme - Thanks a lot for the work you did on this! The interface is slick and it was really easy to analyze my data.

One problem I had is that I couldn't download the CSV file of conversation data for really large conversations.

I found this library that allows you to download arbitrarily large files by converting them to Blob types.

I was able to plug it in to your code pretty easily, and I was able to download CSVs as large as 12.5 MB (did not try any larger than that).

I did not extensively test this, but it seems to work fine for my data at least.

Feel free to reject this PR if you don't want the additional dependency or are worried about browser compatibility. I didn't spend much time on this, so I won't be offended :)