Twitter exclude_replies=true count=5 未返回 5 条推文
Twitter exclude_replies=true count=5 not returning 5 tweets
如何return 特定 条推文 没有 回复?
https://github.com/thujohn/twitter/issues/4
我在 github 上找到了这个答案,但它一点用处也没有。是否应该在 while 循环中向 API 发出请求,直到我收到 5 条推文?真的吗?
感谢您的帮助。
这些是我的参数:
const params = {
lang: 'en',
count: 5, // I want exactly 5 tweets
user_id: 12312312,
screen_name: 'somescreenname',
tweet_mode: 'extended', // I need media
exclude_replies: true, // I DO NOT want replies
include_rts: 1, // I want retweets from the user
}
在 Twitter API 时间线请求中,例如 user timeline,在 count
条推文被 select 编辑后删除回复。
Using exclude_replies with the count parameter will mean you will
receive up-to count tweets — this is because the count parameter
retrieves that many Tweets before filtering out retweets and replies.
我建议您使用更大的 count
(最多允许 200 个)和 select 响应中的前五个推文。
如何return 特定 条推文 没有 回复?
https://github.com/thujohn/twitter/issues/4
我在 github 上找到了这个答案,但它一点用处也没有。是否应该在 while 循环中向 API 发出请求,直到我收到 5 条推文?真的吗?
感谢您的帮助。
这些是我的参数:
const params = {
lang: 'en',
count: 5, // I want exactly 5 tweets
user_id: 12312312,
screen_name: 'somescreenname',
tweet_mode: 'extended', // I need media
exclude_replies: true, // I DO NOT want replies
include_rts: 1, // I want retweets from the user
}
在 Twitter API 时间线请求中,例如 user timeline,在 count
条推文被 select 编辑后删除回复。
Using exclude_replies with the count parameter will mean you will receive up-to count tweets — this is because the count parameter retrieves that many Tweets before filtering out retweets and replies.
我建议您使用更大的 count
(最多允许 200 个)和 select 响应中的前五个推文。