Python 2.7 Script to collect Social Media Stats (Follwers/Likes) from Facebook, Instagram and Twitter for a specified page and store in a Google Sheet document
Requires the following non-stock libraries:
urllib
urlparse
subprocess
warnings
json
requests
bs4
Note the Facebook portion requires use of the Facebook Graph API, which requires an App ID and App secret to utilize. A Google API ouath login is also required. See https://support.google.com/googleapi/answer/6158857?hl=en
Edit config.py with the Social Media page\s you want to check, your Facebook App ID and Secret, your Google Sheets Name and Worksheet, the and the columns to put data in. Place your Google Client Secret .json file somewhere and then update "secretfile" with the full path in the googlesheet update file.
Run mitzbot.py [name of config file], for example "mitzbot.py config"
The Instagram function no longer will work due to Instagram deprecating their API as of early 2018