[twitter-dev] Re: [Q] how to collect info on followers efficiently

2009-05-10 Thread Joe Flesh
Thanks Cameron, thats what I need, until I get to 500K followers :)

On Fri, May 8, 2009 at 7:27 AM, Cameron Kaiser spec...@floodgap.com wrote:


  Let's say I want to write an application that operates a twitter account
 X,
  and I want the application to obtain every hour for each follower Y of X
 to
  obtain the count of followers of Y (how many, not the actual list).
 
  I know I can do this via the followers.xml API but that (a) returns only
 100
  of X's followers at a time, and (b) returns a LOT of data I don't need.

 Have you looked at the social graph methods? These are still paged, but at
 5000/page.


 http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids

 --
  personal:
 http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
 ckai...@floodgap.com
 -- A zebra cannot change its spots. -- Al Gore
 




-- 
FleshJoe
a href=http://www.fleshjoe.com/fleshfiles/index1.html;Still using your
hand?/a


[twitter-dev] Re: [Q] how to collect info on followers efficiently

2009-05-10 Thread Joe Flesh
Unfortunately these APIs give you the IDs of your followers, but not the
number of followers that each of these IDs has. So this is not the answer.
Ordinarily I'd write my app to cache the IDs of the twitter account that
it's operating so that it would not have to ask for this list every time.

Basically I want the following:

[for all Y where Y is a follower of X | Y, the number of followers of Y]

So it looks like I'm limited to the status methods which return 100 results
at a time, and whose return info contains the info I need. I'm guessing I'll
just have to apply for whitelisting once X gets more than 10K followers.

On Fri, May 8, 2009 at 7:27 AM, Cameron Kaiser spec...@floodgap.com wrote:


  Let's say I want to write an application that operates a twitter account
 X,
  and I want the application to obtain every hour for each follower Y of X
 to
  obtain the count of followers of Y (how many, not the actual list).
 
  I know I can do this via the followers.xml API but that (a) returns only
 100
  of X's followers at a time, and (b) returns a LOT of data I don't need.

 Have you looked at the social graph methods? These are still paged, but at
 5000/page.


 http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids

 --
  personal:
 http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
 ckai...@floodgap.com
 -- A zebra cannot change its spots. -- Al Gore
 



[twitter-dev] Re: [Q] how to collect info on followers efficiently

2009-05-08 Thread Cameron Kaiser

 Let's say I want to write an application that operates a twitter account X,
 and I want the application to obtain every hour for each follower Y of X to
 obtain the count of followers of Y (how many, not the actual list).
 
 I know I can do this via the followers.xml API but that (a) returns only 100
 of X's followers at a time, and (b) returns a LOT of data I don't need.

Have you looked at the social graph methods? These are still paged, but at
5000/page.

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- A zebra cannot change its spots. -- Al Gore 


[twitter-dev] Re: [Q] how to collect info on followers efficiently

2009-05-08 Thread Stuart

2009/5/8 Joe Flesh flesh...@gmail.com:
 Let's say I want to write an application that operates a twitter account X,
 and I want the application to obtain every hour for each follower Y of X to
 obtain the count of followers of Y (how many, not the actual list).

 I know I can do this via the followers.xml API but that (a) returns only 100
 of X's followers at a time, and (b) returns a LOT of data I don't need. Yes,
 within that data for each follower of X there is the info I need, but this
 is very wasteful way of obtaining the data. And since twitter rate-limits
 applications to only 100 API calls per hour this would not work when account
 X has more than 10K followers.

 So what are my options?

If you only want the number of followers you can get this from the
users/show method.

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-users%C2%A0show

-Stuart

-- 
http://stut.net/projects/twitter


[twitter-dev] Re: [Q] how to collect info on followers efficiently

2009-05-08 Thread Abraham Williams
Or a combination of the 2. Use the social graph method on X to get the Ys
and then run users/show on each why to get the number of their followers.

On Fri, May 8, 2009 at 09:41, Stuart stut...@gmail.com wrote:


 2009/5/8 Joe Flesh flesh...@gmail.com:
  Let's say I want to write an application that operates a twitter account
 X,
  and I want the application to obtain every hour for each follower Y of X
 to
  obtain the count of followers of Y (how many, not the actual list).
 
  I know I can do this via the followers.xml API but that (a) returns only
 100
  of X's followers at a time, and (b) returns a LOT of data I don't need.
 Yes,
  within that data for each follower of X there is the info I need, but
 this
  is very wasteful way of obtaining the data. And since twitter rate-limits
  applications to only 100 API calls per hour this would not work when
 account
  X has more than 10K followers.
 
  So what are my options?

 If you only want the number of followers you can get this from the
 users/show method.

 http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-users%C2%A0show

 -Stuart

 --
 http://stut.net/projects/twitter




-- 
Abraham Williams | http://the.hackerconundrum.com
Hacker | http://abrah.am | http://twitter.com/abraham
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States