Giter Site home page Giter Site logo

chatstats's Introduction

ChatStats

This is a repo for helping to analyse Facebook groupchats

This package will show some cool statistics for your Facebook groupchats.

Requirements:

Python 2.7

To install a fresh environment through Anaconda run following commands:

conda create -n py27 python=2.7 anaconda
activate py27

How to obtain chatlogs from Facebook

Download your facebook chatlog, you can find it in your Facebook general account settings right here: N|Solid

You will find multiple html files with all your chatlogs. You can open them in a browser to look for the one you want to analyse. Alternatively you could go to the group in messenger and copy the group-id there:

https://www.messenger.com/t/COPY_THIS_NUMBER

Getting started:

Once you have located your groupchat file.html use the following commands in the terminal:

git clone https://github.com/tvturnhout/ChatStats
cd ChatStats
python main.py /path/to/html/file.html

You can see a short summary in the terminal and under the ./plot folder you will now find the different plots.

All credits go to conor-or, this is merely a wrapper to make the library work on European time formats.

chatstats's People

Contributors

tvturnhout avatar

Stargazers

 avatar

Watchers

 avatar  avatar

chatstats's Issues

IndexError: string index out of range

Hey, how are you? When running your script, I get this error:

File found, loading messages...
Traceback (most recent call last):
File "main.py", line 551, in
groupchat = messages_load()
File "main.py", line 533, in messages_load
return GroupChat(load(f))
File "main.py", line 31, in init
u.split(' '))) for u in self.users]
File "main.py", line 30, in
self.users_initials = [''.join(map(lambda x: x[0],
IndexError: string index out of range

Any idea what might be the problem? Using 2.7 python, etc. Also, I had to manually replace the "input/group_chat.pkl" destinations, in main.py and parser.py.
Thanks for any help

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.