Correct me if I'm wrong, using ids/followers will only give me the IDs
and you would need to to fetch the other information for each of the
IDs one by one. Meaning, you would need to make 5001 api requests to
fetch information for 5000 followers/friends (such as # of following,
# of followers, # of tweets, and many more). Unlike to the method I
have noted above, you would only need to do 50 api requests to fetch
information on 5000 followers/friends.

If there is a way I'm missing with regards to the use of the IDs, I'm
all ears.

Thanks!


On Nov 27, 5:08 am, Edward Hotchkiss <edw...@edwardhotchkiss.com>
wrote:
> dude just use oauth, 5000 per call ids/followers is the method. look it up.
>
> On Nov 26, 2010, at 3:04 AM,m36tb6llwrote:
>
>
>
>
>
> > Hi. If it would help. I just created a web app using
> >http://api.twitter.com/1/statuses/followers.jsonand made a loop using
> > a variable delay time 
> > usinghttp://api.twitter.com/1/account/rate_limit_status.json
> > so as to avoid going over the limits. It allowed me to fetch
> > approximately 15000 (100 per call) in 1 hour using unauthenticated
> > requests.
>
> > ;)
>
> > On Nov 24, 2:29 am, Edward Hotchkiss <edw...@edwardhotchkiss.com>
> > wrote:
> >> just make sure to check for next_cursor_str to grab the next page if the 
> >> user has more than 5000. note that next_cursor_str does not ever return 
> >> null
> >> On Nov 23, 2010, at 1:17 PM, Matt Harris wrote:
>
> >>> You can get the list of all followers using the API request:
> >>>    https://api.twitter.com/1/followers/ids.json?cursor=-1
>
> >>> That request will return up to 5000 follower IDs in one request. You can 
> >>> then look up details of those users using the /1/users/lookup method.
>
> >>> More information on these methods is available here:
> >>>    http://dev.twitter.com/doc/get/followers/ids
> >>> and
> >>>    http://dev.twitter.com/doc/get/users/lookup
>
> >>> Best
> >>> @themattharris
> >>> Developer Advocate, Twitter
> >>>http://twitter.com/themattharris
>
> >>> On Tue, Nov 23, 2010 at 5:11 AM, jaojao <wuwei.yuan...@gmail.com> wrote:
> >>> Hi,
> >>> I have written a php to fetch followers of a given username of twitter
> >>> by using twitter API.
> >>> But the result is limited by the number of followers.
> >>> For example, there are only 100 followers of BBCWorld listed in
> >>> result, instead of 367,480.
>
> >>> What is the solution to overcome this limitation?
>
> >>> my code:
> >>> <?php
> >>> $username="BBCWorld"; //input user name of twitter
> >>> $follower_url = "http://api.twitter.com/1/statuses/followers/";.
> >>> $username.".xml";
>
> >>> $twFriends = curl_init();
> >>> curl_setopt($twFriends, CURLOPT_URL, $follower_url);
> >>> curl_setopt($twFriends, CURLOPT_RETURNTRANSFER, TRUE);
> >>> $twiFriends = curl_exec($twFriends);
> >>> $response = new SimpleXMLElement($twiFriends);
>
> >>> foreach($response->user as $friends){
> >>> $thumb = $friends->profile_image_url;
> >>> $url = $friends->screen_name;
> >>> $name = $friends->name;
> >>> ?>
> >>> <a title="<?php echo $name;?>" href="http://www.twitter.com/<?php echo
> >>> $url;?>"><img class="photo-img" src="<?php echo $thumb?>" border="0"
> >>> alt="" width="40" /></a>
> >>> <?php
> >>> }
> >>> ?>
>
> >>> --
> >>> Twitter developer documentation and resources:http://dev.twitter.com/doc
> >>> API updates via Twitter:http://twitter.com/twitterapi
> >>> Issues/Enhancements 
> >>> Tracker:http://code.google.com/p/twitter-api/issues/list
> >>> Change your membership to this 
> >>> group:http://groups.google.com/group/twitter-development-talk
>
> >>> --
> >>> Twitter developer documentation and resources:http://dev.twitter.com/doc
> >>> API updates via Twitter:http://twitter.com/twitterapi
> >>> Issues/Enhancements 
> >>> Tracker:http://code.google.com/p/twitter-api/issues/list
> >>> Change your membership to this 
> >>> group:http://groups.google.com/group/twitter-development-talk
>
> >> Regards,
>
> >> --------------------
> >> Edward Hotchkiss
> >> edw...@edwardhotchkiss.comhttp://www.edwardhotchkiss.com/
> >> --------------------
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this 
> > group:http://groups.google.com/group/twitter-development-talk
>
> Regards,
>
> --------------------
> Edward Hotchkiss
> edw...@edwardhotchkiss.comhttp://www.edwardhotchkiss.com/
> --------------------

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to