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
| <?php | |
| // Require the TwitterOAuth library. http://github.com/abraham/twitteroauth | |
| require_once('twitteroauth/twitteroauth.php'); | |
| $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_SECRET); | |
| // Empty array that will be used to store followers. | |
| $profiles = array(); | |
| // Get the ids of all followers. | |
| $ids = $connection->get('followers/ids'); | |
| // Chunk the ids in to arrays of 100. |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| This script will delete all of the tweets in the specified account. | |
| You may need to hit the "more" button on the bottom of your twitter profile | |
| page every now and then as the script runs, this is due to a bug in twitter. | |
| You will need to get a consumer key and consumer secret token to use this | |
| script, you can do so by registering a twitter application at https://dev.twitter.com/apps | |
| @requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1) |
NewerOlder