SkillAgentSearch skills...

Actuary

Pull your facebook friends' data to use with xkcd's actuary.py

Install / Use

/learn @wimsy/Actuary
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Actuarize your Facebook friends

This is a little script I pulled together to pull my Facebook friends' age and sex data and format it to run through xkcd's actuary.py so I could amaze by friends with probabilistic predictions of their own collective demise.

I used Temboo to handle the OAuth bit, but I'm sure someone more talented than I could figure out how to do it without that. I just finally gave up. I use the standard Facebook Python SDK with FQL to pull the actual data. I'm storing the relevant keys in a CSV file (not very robust, I know). I included an example with just the headers. The first time you authenticate, it will write the access token back to this file so you don't need to authenticate again until it expires.

This is yours to use however you like under the MIT License.

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2y ago
Forks5

Languages

Python

Security Score

55/100

Audited on Oct 5, 2023

No findings