如何从 R twitteR 包中的 searchTwitter() 获取所有历史信息

编程入门 行业动态 更新时间:2024-10-24 13:28:26
本文介绍了如何从 R twitteR 包中的 searchTwitter() 获取所有历史信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试使用 searchTwitter() 在 Twitter 上查找某个主题.例如:

I'm trying to use searchTwitter() to find certain topic on twitter. For example:

searchTwitter("#Fast and Furious 7", n = 10000)

只能给我几千个结果.我还对其他主题进行了一些研究.从结果中看日期似乎只能返回9天前的结果(有称为sinceuntil的参数,用于指定时间范围. 但它们不起作用).

can only give me a few thousand results. I have also done some research on other topics. It seems that by looking at the date from the result it can only return the result from 9 days before (There are arguments called since and until which are used to specify time range. But they don't work).

所以我在想有没有办法获得所有这个主题的信息?(或者至少我可以控制日期范围).

So I'm thinking is there a way to get information for all of this topic? (Or at least I can take control date range).

除此之外.我可以在 R 中使用 xml 来达到同样的目的吗?

Apart from this. Can I use xml in R to achieve the same purpose?

推荐答案

Twitter 仅提供最近几天的搜索.

Twitter provides search for the last few days only.

考虑到感兴趣的用户很少,保持数据索引的成本太高.Twitter 的商业模式是实时信息.

The cost of keeping the data indexed is too high, given the few users interested. Twitter's business model is live information.

如果您需要历史数据,则必须从第三方供应商处购买.我不记得名字了,但是一家提供此类数据的公司是从 Twitter 网页链接的,他们解释了搜索 API 的这种限制.

If you want historical data, you will have to buy this from third party providers. I don't remember the name, but a company offering such data was linked from the Twitter web page where they explained this limitation of their search API.

这篇关于如何从 R twitteR 包中的 searchTwitter() 获取所有历史信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-29 16:14:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1192090.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:包中   历史   信息   twitteR   searchTwitter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!