Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victowang/facebookMessengerParser
Python scripts to parse and explore data from your messenger conversations
https://github.com/victowang/facebookMessengerParser
Last synced: 3 months ago
JSON representation
Python scripts to parse and explore data from your messenger conversations
- Host: GitHub
- URL: https://github.com/victowang/facebookMessengerParser
- Owner: victowang
- Created: 2020-01-28T22:09:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T00:56:53.000Z (over 2 years ago)
- Last Synced: 2024-07-27T05:38:39.039Z (4 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Parser for Facebook messenger
## Why ?
Explore your messenger data, you might find some fun or interesting insight about your friends who are in the same conversation.#### Examples :
* Who uses the most reactions
* Who receives the most reactions## What can this parser do ?
#### Data :
* Find out how many message reactions each user has received
* Find out how many message readctions each user has sent#### Scope :
* A single HTML file
* All the html files in a directory## How to get your data ?
You can download your Facebook messenger data in your [personal information](https://www.facebook.com/settings?tab=your_facebook_information) as html files.
Note : Be careful with the downloaded data as it may contain sensitive information concerning you or your contacts## Get the number of reactions for each user in the conversation
#### Example :
from messengerParser import *
path = "data/facebook-your_username/messages/inbox/conversation_name/" # Path to the directory where your html files are
result = getReceivedReactionsFromDir(path) # Get dataframe with data about received reactions
print(result.to_string()) # Print result in the console
result.to_csv(r'receivedReactions.csv') # Write results to csv## Display the data with Dash
* Bar charts of sent and received reactions
* Radar charts representing each user##### In project root run :
python dashApp/app.py##### with your browser go to :
http://127.0.0.1:8050/## Notes
It would probably be more efficient code the same process with data from facebook imported as JSON.