LoginSignup
4
9

More than 5 years have passed since last update.

【Yahoo!リアルタイム検索】任意の期間を指定して検索する方法

Last updated at Posted at 2016-11-30

Yahoo!リアルタイム検索で情報収集をしようとして、「えっ30日間しか遡れないの?:sob:10ヶ月前の◯月◯日〜◯月□日のことを調べたいのに:sob:」と、もどかしくなったので解決策をメモします。



スクリーンショット 2016-11-30 22.12.31.png

:kobito: 11/30の2:30 - 6:00に絞り込んだときの検索URLに注目。
http://realtime.search.yahoo.co.jp/search?p=Qiita&rkf=1&ei=UTF-8&lts=1480440600&uts=1480453200&gd=1&gm=d&guts=1480511700

パラメータ 説明
q 検索キーワード
lts 検索開始日時
uts 検索終了日時
guts 現在の日時

11/30 2:30が1480440600で6:00が1480453200......

数字 示す(表示される)日時
1480440600 11/30 2:30
1480440601 11/30 2:30
1480440659 11/30 2:30
1480440660 11/30 2:31

:santa_tone2::santa_tone2: 単位は秒...!!!:santa_tone2::santa_tone2:

n時間前の検索をするには3600n
m日前を検索するためには、86400m
を引けば求められる...

検索したい期間が何日前なのか日数計算で調べて...

3600をかけて...

現在の数字から引いて...

...

4
9
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
4
9