简体   繁体   中英

Read tweets for 3 weeks through Twitter Search API

I am totally confused by the vast amount of data about the search API, with different and confusing point of views. All I need is simple answers to some questions.

I need tweets about certain keywords for my research. I will search for those keywords up to 3-4 weeks. We opt for search API, through this way we will be able to read tweets of last few days, and repeat the process every specific days and hopefully won't miss too any.

  1. How many tweets can I search in one hour, with one application?

  2. I may have 60 to 70 key words to search. Is it a good idea to use one Twitter developer application for all the keywords, or create more application (eg 1 application for each keyword).

  3. How many applications can I register/create on one account?

  4. In my case, Is it a good idea to use search API, instead of streaming API?

I know the questions are trivial, but there are so many answers. And by your help, maybe I can get more solid overview.

I have done Tweet search application in Rails.

1 Twitter API has limits on number of tweets that you can search per window frame https://dev.twitter.com/docs/rate-limiting/1.1/limits this link will give you limits.

presently limits is set to 450 requests per 15 minutes(450x200(per request) X 15 X 4) tweets but I think you need to customize the options to fetch tweets that are not in your database. You might get same tweets again and again. I guess Since_id & result_type will help you in that.

2 It depends upon the popularity of the keywords.But I don't think you can get this much tweets in one application. Its hit and trial attempt.

3 I don't exactly know the limits for this.

4 Streaming API would be best but If you don't need much of the tweets than search api seems fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM