Most probably have extensive local caching and only pull missing or old data.
abraham On Wed, Apr 8, 2009 at 11:44, erdal <[email protected]> wrote: > > I've seen some twitter friend recommenders out there. I wonder how > they manage to do it fast enough? Or maybe they don't look at that > many connections. > Any ideas on how this can be done? > > I think the API is awesome so far and this is a tough problem to solve > because it involves a lot of data being transported over the network, > but there must be a way. > > Thank you for your help! > --Erdal > > > On Apr 1, 5:53 pm, Alex Payne <[email protected]> wrote: > > 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 > -- Abraham Williams | Hacker | http://abrah.am @poseurtech | http://the.hackerconundrum.com Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, Wisconsin, United States
