One of this week's fun tasks from my MA Social Media course was to fool around a little with Twitter API and Google Spreadsheets, and the result was awesome. I started off playing with my own twitter account and then it evolved to a very useful thing: now I have a list of all @igersbirmingham followers, their location, their twitter bio and other interesting data about them.
But, why is this useful to me? Well, I'm putting together an Instagram Photomarathon in Birmingham, and those guys are my target! Cool, isn't it? I have details about my target and I can use these details to communicate with them in a much more appealing way!
Here's how I got all this data:
- You must have a Google account and be signed in to it.
- Then, sign in to a Twitter Developer account at https://dev.twitter.com/
- Copy this spreadsheet: https://docs.google.com/spreadsheet/ccc?key=0AqGkLMU9sHmLdFl6bUh0WXJKUXRKWGt5bGxtMHlCZkE#gid=25 (Open it, go to File - Make a copy)
- In your Twitter Developer account go to My applications - Create a new application
- Fill the form, in the Callback URL bit you must copy this adress: https://spreadsheets.google.com/macros
- In this spreadsheet from the Twitter drop-down menu (next to Help) select 'Configure'. You may need to run this twice, the first time to authorise the script and follow the instructions for obtaining a Customer Key and Secret from Twitter. If there is no Twitter menu option click on the "Load Twitter menu" button
- Select Tools > Scripts > Script Editor ... and from the Script Editor window select Run > aTest. This should bring up an authorization message box, click on Authorize.
- In the Twitter Authorization window enter your login details if required and select 'Allow'
- Close the Script Editor window and a dialog box in the main spreadsheet should indicate if you have successfully connected to Twitter
- If all is okay you can now select Twitter > Get Followers and Twitter > Get Friends (when these run your sheet may go blank, if so refresh your browser window)
0 comentários:
Post a Comment
Thank you for posting a comment to my blog!