LoginSignup
2
1

More than 5 years have passed since last update.

Twitterのsearch/tweetsで取得したツイートからメンションやリツイートを除外する方法

Last updated at Posted at 2017-10-05

レスポンスJSONの中で、retweeted_statusプロパティのあるレコードを除外していけばよい。

プロパティ名 詳細
in_reply_to_screen_name ?string メンションする先のスクリーンネーム
in_reply_to_user_id ?int メンションする先のユーザID
in_reply_to_user_id_str ?int メンションする先のユーザID
is_quote_status bool 引用リツイートの場合にtrue
retweeted_status (object) ツイートが公式リツイートの場合、リツイート元Tweet Object

参考

http://blog.takuros.net/entry/20100505/1273061790
https://syncer.jp/Web/API/Twitter/REST_API/Object/Tweet/

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1