Below is a bash script which will help you to track your twitter followers. In this script I used a database to store the followers count.
twitteruser=( Tapas_Mishra Linux_Funda)
while [ $i -lt $len ]; do
curl http://api.twitter.com/1/followers/ids/$user.xml > /tmp/twitter.txt
result=$(cat /tmp/twitter.txt | wc -l)
((count = result - general))
mysql --host=$mysqlhost --user=$mysqluser --password=$mysqlpass $mysqldb << EOF
insert into twitter_followers (user,followers,loged_at) values('$user','$count','$date');
Share and Enjoy
The following two tabs change content below.
Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.
Latest posts by Tapas Mishra (see all)
- Working with Docker – II - December 16, 2016
- Working with Docker – I - November 28, 2016
- How to work with Chef using Oracle VirtualBox and Vagrant on a Windows host – Part II - November 30, 2014