python - 中间用户在转发链中的作用

标签 python twitter tweepy

我一直在使用 tweepy 开发 Twitter 用户之间的节点/边缘网络(尽管我可以灵活地使用其他库)。是否可以在用户之间建立转发模式?

例如,假设 A 后面跟着 B,而 B 后面跟着 C,而 C 不跟随 A >。 B 转发 A 关于足球比赛的推文。 C 转发来自 B 的转发(不是直接来自 A)。

A -> B -> C

不幸的是,我一直使用的tweepy方法将C的转发直接链接到A,而忽略了B > 作为中间人的角色(这对我来说很重要)。

最佳答案

Tweepy 不允许进行这种转发链分析,因为 Twitter API Tweet 对象不包含转发推文的人的信息。从 retweeted_status 字段的描述来看:

This attribute contains a representation of the original Tweet that was retweeted. Note that retweets of retweets do not show representations of the intermediary retweet, but only the original tweet. - Twitter API (Tweet Object)

不幸的是,目前的 Twitter API 无法实现这一点。

关于python - 中间用户在转发链中的作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26192508/

相关文章:

Python 3.2 问题

python - 使用 for 循环 python 循环遍历数组名称

r - 什么是文本挖掘中的 getText 函数?它从何而来? [r]

python - 我希望你的帮助程序每 12 小时自动运行一次

python - 有什么方法可以使用 tweepy 检索推文事件

python - 并行 Python for 循环

python - 安装 mlxtend 时权限被拒绝 (Python 3)

ios - Twitter 套件未使用 Fabric 集成

ios - TWTRComposer 显示不可见的共享和取消按钮

python - Tweepy Cursor.items() 无法按预期使用 api.retweeters