How many mentions does Justin Bieber have?

Justin Bieberにどれぐらいmentionがくるか体感してみたい!

# depend on earthquake and keyword plugin
$ earthquake
:filter keyword justinbieber
:config keyword {pattern: /@justinbieber/i, filter: true, notify: false}

# When you want to return
:filter off
:config keyword nil

感想
多すぎ。streamを感じる。たぶんこれが世界で一番多いmentionじゃないのかなあ。ladygagaとmasasonしか比較して見てないけどgagaより圧倒的に多い。話しかけやすい? あとは日本語圏でmention多そうな人のイメージでmasason。followersだけで一桁違っちゃう(masason: 1_672_307, ladygaga: 25_517_205, justinbieber: 23_113_574)から仕方ない。private accountからのmentionは知らない。
過程
@justinbieberだけ欲しくていろいろ探しちゃったんだけど、結局無理そうなので
filter track justinbieberして 必要ならinput_filter 的なもので絞ればいいんじゃない?
とある程度あきらめた。
実際叩いてみると分かるんだけどtrack justinbieber で流れてくるのは体感で8割以上@justinbieberなのね。status中にjustin bieberの話をするときは 空白開けるでしょ。裏取ってないけど。あと”キムタク”的な愛称があるんじゃない。適当。
keyword plugin入れて

:plugin_install https://gist.github.com/899506
config keyword {pattern: /@justinbieber/i, filter: true, notify: false}

うわー目がーってなったら適当にhighlignt上書きしちゃう。
:config color { highlight: 0 }
飽きたら
:filter off
でも上書きしたkeyword消えてないので
:config keyword nil
highlight戻すのは 正確には戻ってないけど
:config color { highlight: nil }
config reload的なのがありそうな気がするけど探してない。
このぐらいのコマンドはつくってもいいかなとおもったけどやめた。
:keyword set {}
:keyword off
:highlight on
:highlight off
言い訳。keyword setするときにpatternとignoreと…って書式keyword plugin見ないと分かんないでしょ。keyword off は 困ったら:exit してまた立ち上げればいいじゃん。:highlight on, offはちゃんとやるならhighlightオプション見るようにするのかな、無理やりやるならoutput_filterでitem[“_highlights”]消すのかなあ、それはそれで読み込む順番に依存しそうな気がするし、どっちでもいい。
filter 切り替えしてるとすぐ420返してくる。rate limit??

⚡ :filter keyword justinbieber
⚡ earthquake: error: invalid status code: 420.
earthquake: reconnecting in: 10 seconds
terminate called after throwing an instance of ‘std::runtime_error’
what(): call SetTlsParms before calling StartTls
Abort trap

see: shellのカラーコード

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください