This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Quick script for analyzing data from your Facebook activity page | |
Steps: | |
1. Go to https://www.facebook.com/me/allactivity?privacy_source=activity_log&log_filter=likedposts | |
2. Scroll down as far as you want. | |
3. Open up the browser dev tools, copy the HTML and save it to a file named "sample.html". | |
4. Make sure you have node.js installed (nodejs.org). | |
5. Install the cheerio library (type "npm install cheerio" at the command line). | |
6. Save this script as app.js and run it in the same directory as your saved output (ex: "node app"). |