Advertisement
Guest User

What's your Twitter follower with more followers?

a guest
Jun 20th, 2011
847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #!/bin/bash
  2. # Hackplayers 2011 http://hackplayers.blogspot.com
  3. username=your_account
  4. password=your_password
  5. target=hackplayers
  6. IN=`curl -s -u $username:$password http://api.supertweet.net/1/followers/ids.json?screen_name=$target | sed -e 's/\[//' -e 's/\]//'`
  7. arrIN=${IN//,/ }
  8. >lista.txt
  9. for i in ${arrIN[@]}
  10. do echo `curl -s -u $username:$password http://api.supertweet.net/1/users/show.xml?user_id=$i | sed -n 's/\<followers_count\>//p' | sed 's/<[^>]*>//g;/</N;//b'`" "`curl -s -u $username:$password  http://api.supertweet.net/1/users/show.xml?user_id=$i | sed -n 's/\<screen_name\>//p' | sed 's/<[^>]*>//g;/</N;//b'` | tee -a lista.txt && sleep 6
  11. done
  12. echo "fin"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement