The source code is available on github at https://github.com/lindenb/jsandbox/blob/master/src/sandbox/TwitterToKML.java.
the build.xml is here.
Compilation
ant twitterkml
#get your twitter-id at "http://api.twitter.com/1/users/show.xml?screen_name=<your-twitter-username>"
java -jar dist/twitterkml.jar -g <geonames-id> -o result.kml <twitter-numeric-id>
##WAIT. I don't use the OAuth API, so my program waits until the 'rate limit' is enabled again.
#get your twitter-id at "http://api.twitter.com/1/users/show.xml?screen_name=<your-twitter-username>"
java -jar dist/twitterkml.jar -g <geonames-id> -o result.kml <twitter-numeric-id>
##WAIT. I don't use the OAuth API, so my program waits until the 'rate limit' is enabled again.
'following'
View @yokofakun's followings date:2011-04-28 21:03:42.079 in a larger map
'followers'
View @yokofakun's followers date:2011-04-29 in a larger map
That's it,
Pierre
This is very interesting post! I want to ask, If I have know the tweetuser names (e.g. screenname), may be a list of names, then I want to draw it to map like you do, how could I use your code for that ? Thank you!
ReplyDelete