获取所有带有特定主题标签的推文 [英] Get all tweets with specific hashtag

查看:215
本文介绍了获取所有带有特定主题标签的推文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆