To create three scripts that help me automate the adding and removing of followers from my twitter account.
You will need to use the Twitter API and stay within the request limit that Twitter set.
**Twitter Follow Management**
Create two scripts (and a settngs script) that automates managing my followers on Twitter
Using the Twitter API ([url removed, login to view]+API+Documentation) and if needed classes like [url removed, login to view] the job is to create some scripts that will run when I am not online to try to follow increase the amount of people I follow and in turn if they then dont follow me back eventually stop following them. The principle is to increase the number of followers I have over time.
The main issue is that Twitter has an API but they carefully throttle the number of requests that you can make to the API in any given hour, this is to protect their system but makes it impractical for me to do this task during the time that I am using twitter so an automated system is required to work when I am not using twitter. Twitter changes the number of requests permitted periodically to manage their resources so we need a settings script to adjust for that.
Running to a schedule via Cron job (probably once every half hour) - Note I will set the cron up if needed.
Request my followers
Choose a random follower
Get all their followers
If I am not following them then follow them
*Please note that you will only be able to follow a set amount of people in the amount of requests available before the script next runs*
Prepare an email of all the people who were followed by the end of the script and send it to the email address in script3
Get list of followers into an array
Get list of following into an array
Take away group 'whitelist' (held in the settings script)
Whoever is left if they are being followed but not following me back unfollow them
*Please note that you will only be able to unfollow a set amount of people in the amount of requests available before the script next runs*
Prepare an email of all the people unfollowed by the end of the script and send it to the email address in script3
Keeps the settings and I should be able to change these parameters by accessing this script in a browser.
Run script1 [yes/no]
Run script2 [yes/no]
'Pace in requests' per hour [number]
Username & password
All of the above settings can be held in txt files
The cron job will be on script 3 and run during the hours when I am offline (set by me)
Script 3 will use the logic if run script1 = yes include and therefore run script1. This will allow me to set either script1 or script2 to be run of neither. It will also take the parameter from 'pace of requests' and use this to make sure it stays below the number of requests per hour and therefore avoid any temporary bans.
Username and password are the credentials to be used for the twitter api requests.