问题描述
限时送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天前的结果(有称为since
和until
的参数,用于指定时间范围. 但它们不起作用).
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:关键词]
发布评论