On Sat, Mar 28, 2009 at 9:16 PM, softprops <d.ta...@gmail.com> wrote:
>
> It would be nice if the http://twitter.com/[friends|followers]/ids.format
> uri's could return a bit more useful info like the screen_name.
> .... [ snip ] ...
> <?xml version="1.0" encoding="UTF-8"?>
> <ids>
> <id screen_name="foo">1</id>
> <id screen_name="bar">2</id>
> </ids>
They aren't going to do this for performance reasons, even though yes,
it would be useful.
-damon
What is the best way to accomplish getting a list a given users
friends names while pulling the least amount of data?
An alternative solution may be possible though.
I've recently been reminded that @infochimps has a "massive scrape of
the Twitter social graph" and is willing to make that available, in
whole or in part. However, they are currently awaiting Twitter's
permission on precisely what can be released.
You can read more about this here ->
http://blog.infochimps.org/2008/12/29/massive-scrape-of-twitters-friend-graph/
Assuming that the data is released, even in a limited form, there is
potential there for an id<-->screen_name mapping table which could
serve as a "cache primer" for apps that need that. This could
potentially save a bajillion calls against Twitter's API, which in
turn would have other good effects. One of the most notable places
where this is obviously needed is tying Twitter Search results to
Twitter users. For historical reasons, the user id in the search
result is not the Twitter user_id, so you have to use the screen name.
-damon
--
http://twitter.com/damon
> If Twitter's going to allow this, why don't they just do it themselves and
> provide more accurate and up-to-date info?
Yeah, that'd be nice. But, given everything going on, it's probably
not a priority right now.
> How often does this cache update? I'm curious how accurate and reliable this would be, since
> people are constantly modifying their social graph.
In the case of the id/screen_name thing, the data wouldn't change
much. Ideally, there'd be a way of forcing an update from Twitter in
the case of known/suspected stale data. As to keeping up with the
social graph, I think the current social graph methods are
sufficient/wonderful for that.
-damon
> How often does this cache update? I'm curious how accurate and reliable this would be, since> people are constantly modifying their social graph.In the case of the id/screen_name thing, the data wouldn't change
much. Ideally, there'd be a way of forcing an update from Twitter in
the case of known/suspected stale data. As to keeping up with the
social graph, I think the current social graph methods are
sufficient/wonderful for that.