Finding Mutual Follows

gga

When you’re a Twitter’er you will often be
in a situation where someone follows you, and you’re wondering, ‘Who
is this person? Do I know them?’ Well, I can’t answer that question
for you. But, I have found that one thing that tells you about your
new follower is who they follow that you also follow. Follow?

I want to be able to ask the question ‘Who do we know in common?’, in
short. A useful question, but one that can take quite a while to
answer using the web site. I
asked the lazy
twitterverse if there was already an app for this, but my twitterverse is too small to get an answer. So, I
wrote my own script. I don’t have any handy web space to run this
from, so you’ll have to grab it and run it yourself. You will need to
install the twitter4r gem first:

sudo gem install twitter4r

Then paste the following code into a Ruby file, and run. It takes two
parameters, the names of the two users for who you want to find common
ground.