获取所有带有特定主题标签的推文 [英] Get all tweets with specific hashtag
问题描述
我一直在尝试使用Twitter API,因为我想在特殊页面上显示一些推文列表.
在这些列表中,有一个列表,其中所有推文都包含特定的主题标签(例如 #test )
但是我找不到如何以XML或JSON(最好是后者)获取该列表的方法,有人知道吗?如果可以在TweetSharp中完成
您只需获取http://search.twitter.com/search.json?q=%23test
即可获取JSON中包含#test
的tweet列表,其中%23test
是#test
URL编码的. >
我不熟悉TweetSharp,但我想必须有一个search
命令,您可以使用该命令搜索#test
,然后自己将生成的tweet转换为JSON.
I've been experimenting with the Twitter API because I want to display a few lists of tweets on a special page.
Among those lists is a list with all tweets containing a specific hashtag (e.g. #test)
However I cannot find how to get that list in either XML or JSON (preferably the latter), does anyone know how? It is also fine if it can be done in TweetSharp
You can simply fetch http://search.twitter.com/search.json?q=%23test
to get a list of tweets containing #test
in JSON, where %23test
is #test
URL encoded.
I'm not familiar with TweetSharp, but I guess there must be a search
command that you can use to search for #test
, and then transform the resulting tweets into JSON yourself.
这篇关于获取所有带有特定主题标签的推文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!