Skip to content

Instantly share code, notes, and snippets.

@tmyt
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmyt/11200291 to your computer and use it in GitHub Desktop.
Save tmyt/11200291 to your computer and use it in GitHub Desktop.

今日から使えるAristeaフィルタ式例文集

Aristeaで使えるフィルタ式のサンプル集です。切り貼りして使ってね!

  • 画像タイムライン

entities.media.length > 0

  • 本文に特定のキーワードが含まれる場合

text =@ { 'hoge', 'fuga', 'piyo' }

  • リツイートだけ集める

retweeted_status

  • @user が含まれないツイートを集める

entities.user_mentions.length == 0

  • 本文かscreen nameに特定のキーワードが含まれるものを集める

{ text, user.screen_name } @= { 'hoge', 'fuga', 'piyo' }

  • ハッシュタグがついているツイートを集める

entities.hashtags.length > 0

  • リツイートを除いたものを集める ** 0.9.7では使えません **

retweeted_status == null

  • ふぁぼが1つ以上

favorite_count > 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment