Git Product home page Git Product logo

chatstats's Introduction

๐Ÿงถ๐Ÿงต๐Ÿฆ‰๐ŸฆŽ๐Ÿ‹๐ŸŒฟ๐ŸŒฑ๐Ÿƒ๐ŸŽ๐Ÿ‚๐ŸŒพ๐ŸŒบ๐ŸŒธ๐ŸŒปโœจ๐ŸŒŠ๐Ÿฆโ›ฒ๏ธ๐ŸŒŒ๐ŸŽž๐Ÿ•ฐ๐Ÿ•ฏ๐Ÿ’Ž๐Ÿ”ฎ๐Ÿ—๐Ÿงธ๐Ÿ’ข๐ŸŒ€๐Ÿšโ˜๏ธ

Hi! I'm a software engineer at Instagram. If I'm on Github, it's probably to work on a side project.

My most notable side projects are Connect the Stars, ChatStats and Xcerpt (now defunct).

Besides โŒจ๏ธ coding, I've mainly pass my time by ๐Ÿ“š reading, ๐Ÿฟ watching movies, โœ๐Ÿผ writing, and ๐Ÿƒ๐Ÿป running.

chatstats's People

Contributors

baieric avatar faultywiring avatar jackdallas avatar katrinacrisostomo avatar pmelanson avatar racheko avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

chatstats's Issues

unable to run chatstats.py

Hi! I was trying to run chatstats.py, but it only opened the command prompt for a split second and then immediately closed.

I'm really not sure what to do D:
any help appreciated

Error with running chatstats

Hello,

after forking and installing the dependencies I run into the following error.

Plotting graphs... This may take a minute.
/home/ggiatrakos/Downloads/messages/inbox/[redacted]/message_1.json
/home/ggiatrakos/Programs/chatstats/chatstats.py:67: UserWarning: This pattern is interpreted as a regular expression, and has match groups. To actually get the groups, use str.extract.
  data['game'] = data['content'].str.contains(chatstats_constants.GAME_REGEX, na=False)
Traceback (most recent call last):
  File "/home/ggiatrakos/Programs/chatstats/chatstats.py", line 225, in <module>
    main(sys.argv)
  File "/home/ggiatrakos/Programs/chatstats/chatstats.py", line 212, in main
    words, bigrams, trigrams = word_data(messages)
  File "/home/ggiatrakos/Programs/chatstats/chatstats.py", line 117, in word_data
    elif word in emoji.UNICODE_EMOJI:
AttributeError: module 'emoji' has no attribute 'UNICODE_EMOJI'

There seems to be an issue with the emoji library.

Only 5 graphs generating

Getting the following after running on macOS:

Traceback (most recent call last):
File "chatstats.py", line 207, in
main(sys.argv)
File "chatstats.py", line 191, in main
grapher.graph(messages, output_folder, parent_folder)
File "/Users/User/Downloads/chatstats-master/grapher.py", line 241, in graph
img = plt.imread(file)
File "/Users/User/Library/Python/3.8/lib/python/site-packages/matplotlib/pyplot.py", line 2246, in imread
return matplotlib.image.imread(fname, format)
File "/Users/User/Library/Python/3.8/lib/python/site-packages/matplotlib/image.py", line 1490, in imread
with img_open(fname) as image:
File "/Users/User/Library/Python/3.8/lib/python/site-packages/PIL/ImageFile.py", line 105, in init
self.fp = open(fp, "rb")

It's only generating the following graphs:
Days with the most messages
Messages by hour of day
Messages by trimester
Messages by weekday
Number of messages sent

Please let me know what other relevant info I can provide. Thanks!

problem running chatstats.py

Hi!
I have a problem running the progam.
When I run it, it lists all of the JSON parts, but after a few seconds, it stops and i get :

Traceback (most recent call last):
File "chatstats.py", line 225, in
main(sys.argv)
File "chatstats.py", line 207, in main
messages = clean_data(pd.DataFrame(json_data["messages"]))
File "chatstats.py", line 67, in clean_data
data['game'] = data['content'].str.contains(constants.GAME_REGEX, na=False)
AttributeError: module 'scipy.optimize._highs.constants' has no attribute 'GAME_REGEX'

I have absolutely no idea what it means :')
Thanks ~

Problem with combining json files

I have some trouble running this command because I don't know how to run the command exactly, "python3 combinejson.py", where do I put the direction of the chat folder? because if I put it "Enter the path of your json file(s): " without the "<>" it doesn't work.

Thank you!

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.