GithubHelp home page GithubHelp logo

ristri / whatsappstat Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 348 KB

Tool for parsing and visualising your Whatsapp Chats.

Home Page: https://ristri.github.io/whatsappstat

License: MIT License

CSS 5.23% HTML 38.73% JavaScript 56.04%
javascript parsing regex whatsapp-stat

whatsappstat's People

Contributors

ristri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

whatsappstat's Issues

Save as Image not working

This is the error:

gtm.js?id=GTM-MC29NQC:269 Not allowed to navigate top frame to data URL: data:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvAAAAuRCAYAAACnlthWAAAAAXNSR0IArs4c6QAAIABJREFUeF7snQe4VNX1vhdNepVepIo0AQsoCoKAIiiKKIIUe0yipphiokmMKUZj4i/G3hWlCyggICICUiyAAoL0JtKR3uv/eXfc8z/33Jl7Z8aLwzDffh4e4N5T9nn3nnu/tfa318l3/Pjx46YmAiIgAiIgAiIgAiIgAiKQFgTyScCnxTipkyIgAiIgAiIgAiIgAiLgCEjAayKIgAiIgAiIgAiIgAiIQBoRkIBPo8FSV0VABERABERABERABERAAl5zQAREQAREQAREQAREQATSiIAEfBoNlroqAiIgAiIgAiIgAiIgAhLwmgMiIAIiIAIiIAIiIAIikEYEJODTaLDUVREQAREQAREQAREQARGQgNccEAEREAEREAEREAEREIE0IiABn0aDpa6KgAiIgAiIgAiIgAiIgAS8...39pNc6e7HrAV7rxU7X+1ZjVuHTmm4cLErlfBdyCosfOPX3KwXYe8WBZ8LM6BhmkTO1a2X8h3EhdtRh8e2bzawI9/cSgG/ziAlPVi3qA78luUDiRHqA51NmmwaZYHe6pQuPBvC8g8B+9AR4XhcLfNn7/dEq3mjziFm+ZlEv6wj8VQb+bn/11eeVAkqBCiigAL4CYqlTlQJKAaXAg1SAUR3egWDx7q5duyT7zyLaWrVqPchlPVRz3+4psA/VQtVilAJKAaXAXSigAP4uxFMfVQooBZQC91MBOv+MC/GuBQtY2VKTven17vv9XM/DOJcC+Ifxp6LWpBRQCtxrBRTA32tF1XhKAaWAUuA/pAA76PBBUhrAM+aj4L2k2FrM5vl6vmgS9Gt06j/0I1HDKgWUAkqBB6KAAvgHIruaVCmgFFAKKAWUAkoBpYBSQClQOQUUwFdON/UppYBSQCmgFFAKKAWUAkoBpcADUeD/AQw0oF2uYTIFAAAAAElFTkSuQmCC
(anonymous) @ gtm.js?id=GTM-MC29NQC:269
(anonymous) @ gtm.js?id=GTM-MC29NQC:205
(anonymous) @ gtm.js?id=GTM-MC29NQC:177
setTimeout (async)
G @ gtm.js?id=GTM-MC29NQC:41
(anonymous) @ gtm.js?id=GTM-MC29NQC:177
(anonymous) @ gtm.js?id=GTM-MC29NQC:32
lo @ gtm.js?id=GTM-MC29NQC:176
(anonymous) @ gtm.js?id=GTM-MC29NQC:177
(anonymous) @ gtm.js?id=GTM-MC29NQC:32
O @ gtm.js?id=GTM-MC29NQC:185
w.vtp_gtmOnSuccess @ gtm.js?id=GTM-MC29NQC:183
g.hitCallback @ gtm.js?id=GTM-MC29NQC:247
setTimeout (async)
Ha.D @ analytics.js:45
pc.send @ analytics.js:82
X.b.<computed> @ analytics.js:62
Z.v @ analytics.js:99
Z.D @ analytics.js:98
N @ analytics.js:99
p @ gtm.js?id=GTM-MC29NQC:230
rv @ gtm.js?id=GTM-MC29NQC:235
(anonymous) @ gtm.js?id=GTM-MC29NQC:235
Vf @ gtm.js?id=GTM-MC29NQC:81
fg @ gtm.js?id=GTM-MC29NQC:82
sv @ gtm.js?id=GTM-MC29NQC:235
(anonymous) @ gtm.js?id=GTM-MC29NQC:290
uc @ gtm.js?id=GTM-MC29NQC:49
e @ gtm.js?id=GTM-MC29NQC:184
(anonymous) @ gtm.js?id=GTM-MC29NQC:32
(anonymous) @ gtm.js?id=GTM-MC29NQC:186
(anonymous) @ gtm.js?id=GTM-MC29NQC:185
dp @ gtm.js?id=GTM-MC29NQC:187
Jp @ gtm.js?id=GTM-MC29NQC:191
Kq @ gtm.js?id=GTM-MC29NQC:206
Nq @ gtm.js?id=GTM-MC29NQC:211
Rq.b.push @ gtm.js?id=GTM-MC29NQC:215
Iq @ gtm.js?id=GTM-MC29NQC:205
Ar @ gtm.js?id=GTM-MC29NQC:217
e @ gtm.js?id=GTM-MC29NQC:269
downloadURI @ script.min.js:1
(anonymous) @ script.min.js:1
Promise.then (async)
printToFile @ script.min.js:1
onclick @ index.html:105

Not working for iOS chat logs (different format)

Found this tool on EchoJS and wanted to try it out, sadly it does not work when I try to upload chats exported from the WhatsApp iOS version:

Uncaught TypeError: Cannot read property 'forEach' of null
    at FileReader.fileReader.onload (script.min.js:2)

I suspect the problem stemming from the extraction of sender names:

var sender = fileReader.result.match(/[-](\s\w+)+[:]/g);

The RegEx is looking for the sender's name consisting of normal characters enclosed by a dash and colon.
However, iOS chat logs enclose the date within brackets [ ].
Example:
[11.10.16, 13:45:15] Firstname Lastname:
Additionally, if I decide to use e.g. Emojis in my contacts names \w will fail to recognize the sender's name as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.