We don't have batch requests at the moment, but similar services make use of our Social Graph API methods (http://apiwiki.twitter.com/REST+API+Documentation#SocialGraphMethods) and cache user objects locally. It'll be painfully slow for your first few dozen users, but then increasingly less so as you build your own cache of the Twitter social graph.
Applications like this are tough to build on our API, and we recognize that it's a weak spot. On Wed, Apr 1, 2009 at 11:27, erdal <[email protected]> wrote: > > I am developing a Twitter based app running on Google's App Engine - > http://twittemmender.appspot.com (it is up but not working properly > right now) > > The main idea is to recommend you tweeps that are close to you based > on your latest tweets (and some machine learning on your tweets). For > this I need to get a list of all my friends (easy and fast enough to > do right now), and then for each of those friends get a list of all > their friends (this is where it starts getting slow because this could > add up to about 10,000 friends). Then for each of those second degree > friends I would like to retrieve their latest tweets (20 tweets for > example). > > This means I would have to make ~ 10,000 requests. I am currently > using the python twitter library, which works fine for a few requests > (ex: just getting my latest tweets, or getting a list of my friends), > but as soon as I request the friends of friends (second degree > friends), things start getting slow. > > My question is, is there a good way of doing this? Maybe some batch > requests or something similar? > > Thank you, Twitter API folks! Your help is appreciated! > -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x
