[英]Can we get 100 tweets from twitter in less than 1 minute using any API / Library?
I am using the twitter api but its taking about 15 minutes to fetch about 180 tweets about the specified # tag. 我正在使用twitter api,但是它花费了大约15分钟来获取有关指定#标签的大约180条推文。 Is there any way that we boost the tweets number.
有什么办法可以增加推文数量。 i want to get about 150 tweets in less than a minute.
我想在一分钟内收到约150条推文。
You might use tweepy for the library side of things. 您可能将tweepy用于事物的库方面。
Use the official search API for getting the tweets: 使用官方搜索API获取推文:
GET https://api.twitter.com/1.1/search/tweets.json?q=%23abcd
Where the query parameter can be a string or a hashtag. 其中查询参数可以是字符串或主题标签。 (%23 being the url encoded
#
) More information is available here: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html (%23是url编码的
#
),有关更多信息,请参见: https : //developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html
Note : Search API is OAauth authenticated, so you'll need to include your access tokens to the API call. 注意 :Search API已通过OAauth认证,因此您需要在API调用中包括访问令牌。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.