[英]Most efficient way to find inactive Twitter followers using LINQ to Twitter
The number of queries allowed by the Twitter API is limited. Twitter API 允许的查询数量是有限的。 On the other side the definition of "inactive user" may imply a different algorithm with an impact on request number.另一方面,“非活动用户”的定义可能意味着对请求数量有影响的不同算法。
I'm looking for the most efficient way, in number of queries and quality of "inactivity", to find the inactive followers using LINQ to Twitter.我正在寻找最有效的方法,在查询数量和“不活动”质量方面,使用 LINQ to Twitter 查找不活跃的关注者。
As you must have learned by now, rate-limits and count restrictions prevent a lot of operations on the Twitter API.正如您现在必须了解的那样,速率限制和计数限制阻止了 Twitter API 上的许多操作。 With these constraints, most answers will be less than adequate, but here's a general approach I would use:有了这些限制,大多数答案都不够充分,但这是我将使用的一般方法:
One of the things about this is how you define "Active" and "Inactive" because there might be edge cases.与此相关的一件事是您如何定义“活动”和“非活动”,因为可能存在边缘情况。 eg What if you have folks that don't tweet much, but they DM, favorite, or RT.例如,如果您有一些人不怎么发推文,但是他们 DM、最喜欢的或 RT。 You'll have to do queries on a user's activity to pull out that extra data.您必须对用户的活动进行查询才能提取额外的数据。 Hopefully, this will either validate what you already know or maybe add an idea or two that could be useful.希望这将验证您已经知道的内容,或者添加一两个可能有用的想法。
Note: Consider Gnip if you're willing to pay and avoid the rate limits.注意:如果您愿意付费并避免费率限制,请考虑使用 Gnip。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.