为什么 twitter 流 api 发送不必要的数据?

Why twitter stream api sends unnecessary data?

根据 Twitter 文档

A comma-separated list of user IDs, indicating the users whose Tweets should be delivered on the stream. Following protected users is not supported. For each user specified, the stream will contain:

Tweets created by the user.
Tweets which are retweeted by the user.
Replies to any Tweet created by the user.
Retweets of any Tweet created by the user.
Manual replies, created without pressing a reply button (e.g. “@twitterapi I agree”).

假设我正在关注 X,he/she 拥有数百万粉丝,每当 he/she 发布推文时,很多粉丝都会转发,根据文档流媒体 api 将流式传输所有内容如果我通过 Twitter api 关注该 ID,请注意。所以我的问题是,它只是糟糕的设计还是任何特定的原因。

这是一个设计选择。

您正在查看过滤推文的特定方法(使用 follow 参数)。如果您想要 只是 该用户发布的推文,您可以使用不同的模式,例如 from: 运算符。