Skip to content

Commit

Permalink
Added the followers folder to git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
aphoe committed Oct 14, 2015
1 parent d4abc52 commit bc4ec99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
@@ -1,22 +1,24 @@
##About
This repository code is a *crude* script to get the **User IDs** of the followers of a twitter user.

This code implements [Twitter API 1.1](https://dev.twitter.com/docs/api/1.1) as such you need to create [an app](https://apps.twitter.com/app/new) from your twitter account.
This code implements [Twitter API 1.1](https://dev.twitter.com/docs/api/1.1), as such you need to create [an app](https://apps.twitter.com/app/new) from your twitter account.

I have tried to comment my code as much as I can and I have used user-friendly variable names but sometimes... my brain thinks faster than my hands so some things are skipped ;)
I have tried to comment my code as much as I should and I have used user-friendly variable names but sometimes... my brain thinks faster than my hands could type so some things are skipped ;)

##Instructions
1. Download the zipped file and extract to your web server
1. Download or clone the zipped file and extract to your web server.
2. open `follow.php` and do the following
1. Add the username of the user whose follower you want to save
2. Add your **Twitter App** values to lines 12-15
3. Run the script from your web browser
4. The followers will be saved to a file in the `followers` folder in the format `[username]_followers.txt`
4. The followers will be saved to a file in the `followers` folder. The naming format of the text file is `[username]_followers.txt`

##PHP Server info
Just in case the list of followers is quite much, you might have to change the `max_execution_time` config value in your **PHP Config* file ie php.ini to something meaningful.
Just in case the list of followers is quite much, you might have to change the `max_execution_time` config value in your **PHP Config** file ie php.ini to something meaningful.

I used `43200` (12 hours) on my test server.
I used a value of `43200` (12 hours) on my test server. Although no script I used during test took that long.

> Twitter only allows for 15 requests every 15minutes, so the script has to sleep for 15 minutes everytime the 15 request has been reached.
##Imported libraries
The project uses the [OAuth Library PHP scripts](http://oauth.net). and are available in the `lib` folder
3 changes: 3 additions & 0 deletions followers/README
@@ -0,0 +1,3 @@
This is the folder where the text files are saved to by the script.

Feel free to delete this file.

0 comments on commit bc4ec99

Please sign in to comment.