English 中文(简体)
Get follower count on Twitter API search results
原标题:
  • 时间:2009-11-09 15:19:50
  •  标签:
  • twitter

What I m trying to do is pull some search results, and sort them by users.

Right now I m using $to->OAuthRequest( http://search.twitter.com/search.json , array( q => search-term ), GET );

to get the results, but I can t actually get information about the user like follower_count, etc. so I though I d take each result s user_id, and run it through http://twitter.com/users/show.xml to get the rest of the information.

The problem is, if I get 50 results that way, that s 50 API calls, which is 1/3 of the hourly limit...

Is there a better way to do this?

问题回答

Update:

I have requested whitelisting, and the guys at Twitter told me I should instead use the new Streaming API.

This kinda sucks since it s in Alpha testing, and the documentation is unclear, but the concept looks cool, and the limits are different than the regular API. Gonna dive into it later.

Only reliable user information you can get from twitter search results are username (from_user) and profile image url. If you want more information, you will have to call the users/show method for each user. There is no workaround or better way(that I m aware of).

You will have to Cache user information and request whitelisting.





相关问题
Understanding Twitter API s "Cursor" parameter

I don t really get how to use the Curesor parameter in Twitter s API, for an exmaple - here. Am I supposed to make a new API call for each 100 followers? I d love it if someone could provide a PHP ...

Cannot get Twitter-OAuth-iPhone to work

demo works as expected, no problems. But now I m trying to integrate it into my project. I use no xib-s, code only: OAuthTwitterDemoViewController *vc = [[OAuthTwitterDemoViewController alloc] init]; ...

Creating a constantly updating feed like Twitter

I d like to have something in my app that is just like Twitter but not Twitter. Basically it will be a place people can submit messages and do not need an account. They only way they can submit is ...

RegEx: Link Twitter-Name Mentions to Twitter in HTML

I want to do THIS, just a little bit more complicated: Lets say, I have an HTML input: <a href="http://www.example.com" title="Bla @test blubb">Don t break!</a> Some Twitter Users: @...

twitter status update using tweetsharp oauth preview 17

I am trying to update the status using tweetsharp oauth preview 17. Please let me know how ?. I tried this code var msg = FluentTwitter.CreateRequest() .AuthenticateWith(_consumerKey, ...

How to test the twitter API locally?

I m trying to write a web application that would use Twitter via OAuth. I run my local server as localhost , so I need the callback URL to be something like http://localhost/something/twitter.do ...

Get follower count on Twitter API search results

What I m trying to do is pull some search results, and sort them by users. Right now I m using $to->OAuthRequest( http://search.twitter.com/search.json , array( q => search-term ), GET ); to ...

热门标签