Skip to content

Get charts, statistics and Pandas DataFrame from messages on Facebook. Input data: JSON from "Your Facebook Information". [json, NumPy, Pandas]

License

Notifications You must be signed in to change notification settings

maciej1x/facebook-msgs-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Messages Analyzer

Get charts, statistics and pandas DataFrame from messages on facebook

How to get messages?

You can download them from:
Settings > Your Facebook Information > Download a copy of your information
Then select JSON format and Messages.

How to run?

Run setup.py Load JSON file of one conversation (default name: messages_1.json) with function get_input_dataframe()

Functions:

  • get_input_dataframe get pandas dataframe from json file (it is input for most of the functions)
  • elastic index data to ElasticSearch
  • count_msg get total text messages sent by each member
  • count_word get number of messages in which appeard given word
  • count_words get number of messages in which appeard given words
  • count_photos get number of photos sent by each member
  • get_most_reacted_text get messages with certain minimum of reactions
  • get_most_reacted_photos get photos with certain minimum of reactions
  • get_messages_by_day get pandas dataframe with messages summed by day
  • plot_by_day plot chart for messages per day
  • plot_by_month_members plot chart for messages per month for every member and total(optional)
  • plot_by_month_total plot chart for total messages per month
  • most_common_words get most common words, and their count used in conversation
  • get_members_stats_monthly get number of messages sent by every member and total messages in every month
  • number_of_reactions_for_members - returns dataframe with number of different reactions sent by every member and total
  • plot_number_of_reactions_for_member bar chart for number_of_reactions_for_members()
  • total_number_of_reactions returns dataframe with number of total usage of every reaction
  • plot_number_of_reactions bar chart for total_number_of_reactions()
  • plot_messages_by_hour bar chart for total messages sent in every hour

To do

  • WEBSITE

Additional info:

If you want to decode string to UTF-8 you can use decode function, or decode_column to decode entire column on dataframe.

About

Get charts, statistics and Pandas DataFrame from messages on Facebook. Input data: JSON from "Your Facebook Information". [json, NumPy, Pandas]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages