今日は8月19日。俳句の日である。というわけで自動的にはてなハイクの日でもある。そして、今日もスパムの巣窟。
この頃のスパムはキリル文字ですか。英語圏からだけじゃなく、スパムも世界から。ワールドワイド化すごいじゃないですか、はてな(褒めてない)。
はてなハイクについてはこちらをどうぞ。
以前、はてなハイクのスパム除けのアイディアを書いた。
でも、スパムがハイクユーザの目に触れなければいいのであれば、自分が見たいエントリだけを表示できるクライアントでもいいことになる。というわけで、TweetDeckのようにブラウザで動く、はてなハイクのクライアントがあればいいことになる。
TweetDeck(ツイートデック)とは、Twitterの公式クライアント・アプリケーションの1つである。カラムと呼ばれる「列」ごとにソーシャルメディアの友達や話題を割り当てて分類することで、混乱を起こさずに一覧表示できる。
自分のエントリを表示するカラムや、ファンやフレンドのエントリを表示するカラム、キーワードを表示するカラムなどを設定でき、リアルタイム更新できるととても使いやすい。
はてなハイクにはAPIがあるので、今すぐにでもTweetDeckクローンのハイククライアントを作れそう。
はてなハイクAPI一覧 - Hatena Developer Center
はてなハイク REST API - Hatena Developer Center
ざっとAPI一覧を見たところでは、コメントの実装が少し厄介かも(赤丸のところ)。
今は時間が取れないのでオレには無理である。でも、はてなはこれくらい作ってくれてもいいはず。
試しにオレのページをJSONで取得してみたが、API通りきちんと取得できる。
http://h.hatena.ne.jp/api/statuses/user_timeline/shigeo-t.json?
[{"keyword":"鳥写真","source":"mail","link":"http://h.hatena.ne.jp/shigeo-t/13377324008144934","favorited":"27","replies":[],"target":{"word":"鳥写真","title":"鳥写真","url_name":"9245601126960586756@h"},"created_at":"2016-08-18T00:03:18Z","text":"鳥写真=cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20160818/20160818090239.jpg">http://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20160818/20160818090239.jpg","in_reply_to_user_id":"","user":{"followers_count":"1043","profile_image_url":"http://cdn1.www.st-hatena.com/users/sh/shigeo-t/profile.gif?1460145919","url":"http://h.hatena.ne.jp/shigeo-t/","name":"shigeo-t","id":"shigeo-t","screen_name":"shigeo-t"},"id":"13377324008144934","in_reply_to_status_id":""},{"keyword":"id:shigeo-t","source":"はてなブログ","link":"http://h.hatena.ne.jp/shigeo-t/315487931349161342","favorited":"5","replies":[],"target":{"word":"id:shigeo-t","title":"id:shigeo-t","url_name":"shigeo-t"},"created_at":"2016-08-17T20:08:57Z","text":"はてなブログに投稿しました\n【誤用】今だに良くある話し【誤用】 - いろいろやってみるにっき\nhttps://shigeo-t.hatenablog.com/entry/2016/08/18/050224">https://shigeo-t.hatenablog.com/entry/2016/08/18/050224","in_reply_to_user_id":"","user":{"followers_count":"1043","profile_image_url":"http://cdn1.www.st-hatena.com/users/sh/shigeo-t/profile.gif?1460145919","url":"http://h.hatena.ne.jp/shigeo-t/","name":"shigeo-t","id":"shigeo-t","screen_name":"shigeo-t"},"id":"315487931349161342","in_reply_to_status_id":""},
XMLでも取得できる。
http://h.hatena.ne.jp/api/statuses/user_timeline/shigeo-t.xml?
2016-08-18T00:03:18Z 27 13377324008144934 鳥写真 http://h.hatena.ne.jp/shigeo-t/13377324008144934 mail鳥写真 9245601126960586756@h 鳥写真 鳥写真=cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20160818/20160818090239.jpg">http://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20160818/20160818090239.jpg 1043 shigeo-t shigeo-t http://cdn1.www.st-hatena.com/users/sh/shigeo-t/profile.gif?1460145919 shigeo-t http://h.hatena.ne.jp/shigeo-t/
APIは動いているので、作る気になれば作れるはず。