我正试图了解如何在twitter search request中区分转推和原始转发:
{ created_at: 'Mon Mar 06 05:24:24 +0000 2017',
id: 838621263144890400,
id_str: '838621263144890370',
text: 'developerWorks: Check out the latest dW newsblast TODAY! Learn about new tech toys, chatbots, and IBM Cloud.',
truncated: false,
entities: [Object],
metadata: [Object],
source: '<a href="https://ifttt.com" rel="nofollow">IFTTT</a>',
in_reply_to_status_id: null,
in_reply_to_status_id_str: null,
in_reply_to_user_id: null,
in_reply_to_user_id_str: null,
in_reply_to_screen_name: null,
user: [Object],
geo: null,
coordinates: null,
place: null,
contributors: null,
is_quote_status: false,
retweet_count: 0,
favorite_count: 0,
favorited: false,
retweeted: false,
possibly_sensitive: false,
lang: 'en' },
{ created_at: 'Mon Mar 06 05:22:17 +0000 2017',
id: 838620728446578700,
id_str: '838620728446578688',
text: 'RT developerWorks: Check out the latest dW newsblast TODAY! Learn about new tech toys, chatbots, and IBM Cloud.',
truncated: false,
entities: [Object],
metadata: [Object],
source: '<a href="https://ifttt.com" rel="nofollow">IFTTT</a>',
in_reply_to_status_id: null,
in_reply_to_status_id_str: null,
in_reply_to_user_id: null,
in_reply_to_user_id_str: null,
in_reply_to_screen_name: null,
user: [Object],
geo: null,
coordinates: null,
place: null,
contributors: null,
is_quote_status: false,
retweet_count: 0,
favorite_count: 0,
favorited: false,
retweeted: false,
possibly_sensitive: false,
lang: 'en' }
有人可以给我一些建议吗?如果这篇文章被转发,我只能看到一个信息,但如果这是转发本身,我就看不到。我可以检查text
是否以RT
开头,但对我来说这似乎是一个糟糕的解决方案。
答案 0 :(得分:0)
在任何API响应中,我都没有看到retweeted
标志实际设置为true
。
我相信所有转推都会有一个retweeted_status
字段。