Analyse everything facebook knows about you, through their own archive.
In light of the recent facebook's data breach, Mark Zuckerberg made all the data available for each user via Facebook. You're going to need to download it, we'll get to it shortly. There are some things that would take a lot of time (too costly API calls) online, but can be easily done on archived data.
Note to KWoC contributors: All issues are available for KWoC, feel free to work on any issue after being assigned.
Install requirements with pip install -r requirements.txt
python plot_friends.py [path] [--from date] [--to date]
path
is the path to the facebook data archive--from date
specify the beginning of the plot--to date
specify the end of the plotdate
string is in format YYYY-MM-DD
> python plot_friends.py
Enter facebook archive extracted location: <location of extracted data folder, e.g.: "facebook-kaustubhhiware">
You can also run the script on sample data included in the examples folder:
> python plot_friends.py
Enter facebook archive extracted location: ./examples
Will be updated soon
> python plot_messages.py
Enter facebook archive extracted location: "location of extracted, downloaded zip: like facebook-kaustubhhiware"
Will be updated soon
> python where_have_you_been.py
Enter facebook archive extracted location: "location of extracted, downloaded zip: like facebook-kaustubhhiware"
Your contributions are always welcome :smile: ! Please have a look at the contribution guidelines first.
Before working on an issue / feature, it is crucial that you're assigned the task on a GitHub issue.
If you are here for GirlScript's Summer of Code and wish to seek assistance, feel free to contact any of the mentors on slack - @kaustubhhiware, @techytushar, @Anubhav, @fhackdroid, @Roopal.
(Click to expand)
Plot the friends you make every day (blue), and the friends so far (orange).
The following is available for either a specific chat (person / group) or for all messages.
Plot all messages so far,
Find the top ten friends whom you message and plot each friends no. of messages as a function of time https://github.com/hadesanirban/facebook-archive/tree/master/images/Top_10_Friends_whom_I_message
> python plot Top_ten_Friends.py --num_friends 7 (for example)
enter your official facebook name: "your name as in facebook i.e. Anirban Panda"
Enter facebook archive extracted location: "location of extracted, downloaded zip: like facebook-kaustubhhiware"
Also added a new command line argument named num_friends which helps you to plot as many friends as you want but default value is set to 10.
Plot the friends you make every day(Red) ,friend request send every day(green) and friend request received every day(blue)
Plot count of different reactions to posts
Wordcloud of common words in your posts and comments
Plot all locations so far,
There is a spike in friends made in March (Election season) and July (new juniors, much higher spike).
I tend to message less during exams (Feb, Apr, Sep, Nov).
Highest number of messages sent at 9 and 11 pm, confirming with calls from home come at 10pm. Almost no messages shared between 3am-7am.
I used to send more friend request as compared to friend request received.
I tend to receive more friend request in the month of july,august(new juniors)
I always wanted to know how many friends I make every month. It would have been infeasible to make a webapp out of this because so many API calls would be so slow, and whosoever wants to work with Facebook's Graph API?
Plus it was raining and I couldn't go to MS's Hall Day till after the rain stopped.
Have a feature request? See an interesting avenue not utilised yet with facebook's archive? Let me know by making a new issue.
The MIT License (MIT) 2018 - Kaustubh Hiware. Please have a look at the LICENSE for more details.