Twitter:哈希标签搜索查询 [英] Twitter: Hash tag search query

查看:362
本文介绍了Twitter:哈希标签搜索查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过给定的主题标签搜索Twitter推文。我试图得到正确的http查询,但我不知道哪一个。我试了几次,但我找不到正确的。

I am trying to search twitter tweets by a given hashtag. I am trying to get the correct http query, but I have no idea which one. I've tried a few but i can't find the correct one.

我应该使用 http://api.twitter.com/1/ ... link。

I should use the http://api.twitter.com/1/... link.

我已经搜索过通过给定名称的http查询正常工作

I already have a search http query by a given name which works correctly

http://api.twitter.com/1/statuses/user_timeline.json?screen_name=prayforjapan

现在我想通过给定的hashtag(例如#prayforjapan)进行搜索

Now I would like to search by a given hashtag (for example #prayforjapan)

我尝试使用一些,但无法找到正确的,正如我之前所说的。下面是我试过的一个:

I tried using a few, but can't find the correct one as I said before. Here's one I tried:

http://api.twitter.com/1/statuses/public_timeline.json?include_entities=true&hashtag=prayforjapan"

有谁知道我应该使用哪一个?

Does anyone know which one I should use?

谢谢!

Thanks!

推荐答案

您可以简单地抓取 http:// search .twitter.com / search.json?q =%23test 获取JSON中包含 #test 的推文列表,其中%23test #test 编码的网址。

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.

这篇关于Twitter:哈希标签搜索查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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