Skip to content

Instantly share code, notes, and snippets.

@jimbohne
jimbohne / followers.php
Last active March 1, 2018 18:58 — forked from bcantoni/friends.php
Use Twitter API to export data (in CSV format) on people that are following you. See Installation notes for steps. Prerequisites: 1) Twitter OAuth PHP library 2) Create your own Twitter application and OAuth keys/tokens.
<?php
/* followers.php - use Twitter API to export data (CSV format) on people that are following you
Installation:
1. Install Twitter OAuth PHP library (https://github.com/abraham/twitteroauth)
2. Adjust twitteroauth.php include path below
3. Create Twitter application (https://dev.twitter.com/apps)
4. Fill in 4 Twitter app keys below
5. Adjust $fields array if you want different fields saved