twitterツイート遡り取得ブックマークレット スクリプト script Tool

ツイート発掘用特殊検索

対象のツイートより過去遡り仕様
javascript:%28function%28i%2Cu%2Cs%2Cc%2Cq%2Cw%29%7Bw%3Dwindow.open%28%27https%3A%2F%2Ftwitter.com%2Fsearch%3Fq%3D%27%2BencodeURIComponent%28%27from%3A%27%2Bu%2B%27 max_id%3A%27%2Bi%2B%27 since%3A%27%2Bc%28s-3600%2A24%29%29%2B%27%26f%3Drealtime%27%29%3Bc%3Dfunction%28%24%29%7B%24%3D%28function%28%29%7Btry%7Breturn w.%24%7Dcatch%28e%29%7Breturn 0%7D%7D%29%28%29%3Bif%28%21%24%7C%7C%21%28q%3D%24%28"li%5Bdata-item-id%3D%27"%2Bi%2B"%27%5D"%29%29%5B0%5D%29%7BsetTimeout%28c%2C100%29%7Delse%7Bq.css%28%27background%27%2C%27gold%27%29%7D%7D%3Bc%28%29%7D%29%28%24%28%27div.opened-tweet%27%29.attr%28%27data-item-id%27%29%2C%24%28%27div.opened-tweet%27%29.attr%28%27data-screen-name%27%29%2CparseInt%28%24%28%27div.opened-tweet span%5Bdata-time%5D%27%29.attr%28%27data-time%27%29%29%2Cfunction%28s%2Cd%29%7Bd%3Dnew Date%281000%2As%29%3Breturn d.getUTCFullYear%28%29%2B%27-%27%2B%281%2Bd.getUTCMonth%28%29%29%2B%27-%27%2Bd.getUTCDate%28%29%7D%29%0D

同上、元の記述(utf-8復号、このコピペは機能しない場合がある)
javascript:(function(i,u,s,c,q,w){w=window.open('https://twitter.com/search?q='+encodeURIComponent('from:'+u+' max_id:'+i+' since:'+c(s-3600*24))+'&f=realtime');c=function($){$=(function(){try{return w.$}catch(e){return 0}})();if(!$| |!(q=$("li[data-item-id='"+i+"']"))[0]){setTimeout(c,100)}else{q.css('background','gold')}};c()})($('div.opened-tweet').attr('data-item-id'),$('div.opened-tweet').attr('data-screen-name'),parseInt($('div.opened-tweet span[data-time]').attr('data-time')),function(s,d){d=new Date(1000*s);return d.getUTCFullYear()+'-'+(1+d.getUTCMonth())+'-'+d.getUTCDate()})


  1. これをブラウザへブクマ登録
→お気に入りに入れる:
適当なHPをお気に入りに入れ、それのプロパティを開いてURL欄にスクリプトをペースト
  1. 対象のツイート画面でブクマ押下
  2. 検索演算子に応じて対象表示
→演算子を変えてみる

※必ずしも発掘できない事がある
検索参考
期間指定で検索
"since:"・"until:"を使う。
from:furyutei since:2014-3-11 until:2014-3-14
"since:"は「その日以後」("since:2014-3-11"ならば、3月11日を含む)
"until:"は「その日より前」("until:2014-3-14"ならば、3月14日は含まない)
"since:"・"until:"で指定する日付は日本時間から9時間ずれている("since:2014-3-11 until:2014-3-14"→日本時間2014年3月11日09時以降・同3月14日09時より前)
ツイートIDを基準に検索
"max_id:"または"since_id:"を使う。
特定ツイート以前:from:furyutei max_id:443749496573292544 since:2014-3-11
特定ツイートより後:from:furyutei since_id:443749496573292544 until:2014-3-14
"max_id:"は「該当ツイートID以前」("max_id:443749496573292544"ならば、443749496573292544を含む)
"since_id:"は「該当ツイートIDよりも後」("since_id:443749496573292544"ならば、443749496573292544を含まない)
"since_id:"で、特定ツイートを含めたい場合、そのツイートIDから1を引いた数値を指定


手動で打ち込みの場合(取得件数が増える可能性)

ツイッター公式の初ツイート取得




翻訳ボタン(日本語)
javascript:var t=((window.getSelection&&window.getSelection())| |(document.getSelection&&document.getSelection())| |(document.selection&&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset| |document.characterSet);if(t!=''){location.href='http://translate.google.com/?text='+t+'&hl=ja&langpair=auto|ja&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=ja&langpair=auto|ja&tbb=1&ie='+e;};



  • 最終更新:2015-11-25 04:27:25

このWIKIを編集するにはパスワード入力が必要です

認証パスワード