问题描述
我想使用API返回符合我的搜索查询,所有的微博,但在公布最后五秒钟内只能鸣叫。
I would like to use the API to return all tweets that match my search query, but only tweets posted within the last five seconds.
使用Twitter的搜索API,我可以使用since_id从一个特定的ID抓住所有的鸣叫。不过,我真的不能看到一个很好的方式找到鸣叫ID从开始。
With Twitter's Search API, I can use the since_id to grab all tweets from a specific ID. However, I can't really see a good way to find the tweet ID to begin from.
我也知道,你可以用,因为:在实际查询中使用的日期,但不能输入时间
I'm also aware that you can use "since:" in the actual query to use a date, but you cannot enter a time.
有人用Twitter的API的经验可以给我什么建议?感谢您的阅读和您的时间!
Can someone with Twitter API experience offer me any advice? Thanks for reading and your time!
http://apiwiki.twitter.com/Search-API-Documentation
推荐答案
这听起来像你可以在你做到底,如created_at在结果集中的领域之一返回。还是做你的查询,并且只使用最后5秒内的人。
This sounds like something you can do on your end, as created_at is one of the fields returned in the result set. Just do your query, and only use the ones that are within the last 5 seconds.
这篇关于如何使用Twitter的搜索API返回符合我的搜索查询,所有的微博,只有最后五秒钟之内发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!