Twitter API - 显示带有特定主题标签的所有推文? [英] Twitter API - Display all tweets with a certain hashtag?

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

问题描述

我将如何使用 Twitter API 显示包含特定主题标签的推文?谢谢

How would I go about displaying tweets that contain a certain hashtag using the Twitter API? Thanks

我还想知道是否有办法将来自某个主题标签的所有推文都保存在一个单独的文件中,以及那些不再出现在您的提要中的推文.我想这也是之前的问题的内容.

I'd also like to know if there is a way to get all tweets from a certain hashtag in a separate file, also the ones that don't show up in your feed anymore. I suppose that's what the earlier question was about, too.

推荐答案

这个答案写于 2010 年.它使用的 API 已经退役.保留它只是为了历史兴趣.

This answer was written in 2010. The API it uses has since been retired. It is kept for historical interest only.

搜索.

确保 include_entities 设置为 true 以获取主题标签结果.请参阅推文实体

Make sure include_entities is set to true to get hashtag results. See Tweet Entities

返回 5 个混合结果,其中包含 Twitter.com 用户 ID 以及术语蓝色天使"的实体:

Returns 5 mixed results with Twitter.com user IDs plus entities for the term "blue angels":

GET http://search.twitter.com/search.json?q=blue%20angels&rpp=5&include_entities=true&with_twitter_user_id=true&result_type=mixed

这篇关于Twitter API - 显示带有特定主题标签的所有推文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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