Analyze facebook copy of your data with ruby language. Download zip file from facebook and get info about friends ranking by message, vocabulary, contacts, friends added statistics and more
Facebook data analyzer as seen on I analyzed my facebook data and it's story of shyness, loneliness, and change
Analyze Facebook copy of your data. Download zip file from Facebook and get info about friends, ranking by message, vocabulary, contacts, friends added statistics and more.
Remember you need to use english language(US) on facebook for download
It won't work if you use different language because of date formatting, different titles on pages. This script uses nokogiri
internally to parse data.
/Users/przemyslawmroczek/Downloads/facebook-przemekmroczek90/
.ruby
, gem bundler
, gem nokogiri
, gem axlsx
. There are extensive tutorials in the web how to do it and it's beyond this readme.facebook_data_analyzer
.bin/facebook_data_analyzer -c path_to_catalog_with_copy_of_facebook_data
in my case this command looked like: bin/facebook_data_analyzer -c /Users/przemyslawmroczek/Downloads/facebook-przemekmroczek90/
facebook_analysis.xlsx
, and html file facebook_analysis.html
.Optional:
If the DEBUG
environment variable is present, messages are getting converted as json for speed improvement.
bin/facebook_data_analyzer -v -c <path_to_catalog_with_copy_of_facebook_data>
Parsing Messages |Time: 00:00:01 | =======| Time: 00:00:01
Analyzing Messages |Time: 00:00:04 | =======| Time: 00:00:04
= Export facebook_analysis.xlsx
= Export facebook_analysis.html
bin/facebook_data_analyzer -c <path_to_catalog_with_copy_of_facebook_data>
bin/facebook_data_analyzer --help
FacebookDataAnalyzer
-c example/facebook-monaleigh, set directory to facebook export
--catalog
-f, --filename facebook_analysis set the name of the generated files
-p, --[no-]parallel use parallel processing if set
-h, --[no-]html export html when set
-v, --[no-]verbose when set displays additional information
-b, --[no-]benchmark only runs the benchmark if set
--help Show this message
-V, --version Print version
catalog default: 'example/facebook-monaleigh'
filename default: 'facebook_analysis'
parallel default: true
html default: true
verbose default: false
benchmark default: false
Please consider running your changes with
bin/facebook_data_analyzer --benchmark
before making a pull request. Changes that significantly slow this project may be rejected
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Run rspec tests with: bundle install
, rspec .
.
Enjoy!