Amazon Web Services: 2004年2月アーカイブ

読書記録用のスクリプトに“賞味期限”を設定したのに続き、ふるいデータを「バッチで」更新するスクリプトを作成。シェルから呼ぶようにしてcrontabで自動実行しようと考えたが、ssh接続してもシェルが動かない。
今日はcrontabの設定だけで(<おい。)あきらめるとしよう。

前回のレスポンス改善に続いて読書記録用のスクリプトを修正。
「指定されたASINコードに対応するphpファイルが既定のディレクトリに存在しても、一週間以上たっていたらAWSにSOAPでアクセスしてphpファイルを作りなおす」ようにした。

AWS検索(SOAP利用)の検索結果をシンプルに変更。

AWS検索(SOAP利用) を改良。検索結果の画面からさらに条件を変えて検索できるようにした。さらにプログラムの記述を整理して、今後の機能追加に備える。
でも、機能追加の前にまずページナビゲーションあたりのデザインをなんとかしないと。
XSLT利用のAWS検索も、バグ(ページ切り換えの際のパス記述誤り)修正。

AWS検索(SOAP利用)のしょーもないバグを修正。
ついでに、検索結果のページから再検索が出来るように表示を変更。

うーん、もう少し整理が必要か。

Amazonからのニュースレターの「価格・在庫状況をAWSからとってきた日時の表示」に(例によってベタな)対応。
具体的には、以下の通り。
・在庫状況の文字列をaタグではさみ、aタグのタイトル属性に取得日時を仕込む。
・リンク先は新たに作ったスクリプトで、当該アイテムのasinコードを使ってAWSから情報を取り直す。
・情報を取り直したら、何食わぬ顔で元のページに飛ばす。リファラーを取得できなかった場合は取り直した情報を表示する。

あとは、定期的に情報を取り直すための仕組みをつくれば、一区切り。おそらく、情報を取得しなおすphpスクリプトを、cronで走らせるという、またまたベタな方法をとることになりそう。

昨日、「あと、問題は1点、アマゾンでの在庫状況」と書いたが、それを裏付けるようなAWSニュースレターが届いた。Excite翻訳の助けを借りてざっと訳すと以下のような感じ。

表示が重いという問題を抱えていた読書記録用のphpスクリプトを改良。
指定されたASINコードに対応するphpファイルが既定のディレクトリに存在すればインクルードし、存在しなければAWSにSOAPでアクセスしてphpファイルを作っておく、という非常にベタな方法。もともと(MTawsと異なり)リビルド時のAWSアクセス過多によるエラーは出ないので、これでストレスはかなり軽減できたのではないかと考えている。

負荷テストとして、これまで紹介してきた本やDVDなどをずらっと並べてみる。


(ISBN: 9784022643162)
¥0

(ISBN: 9784041356487)
¥0

(ISBN: 9784041356494)
¥0

(ISBN: 9784041789599)
¥0

(ISBN: 9784041795040)
¥0
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.

(ISBN: 9784063491449)
¥0
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.

(ISBN: 9784101154251)
¥0
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.

(ISBN: 9784150307431)
¥0
新解さんの謎
(ISBN: 9784167225025)
¥781
在庫あり
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.

(ISBN: 9784257769880)
¥0

(ISBN: 9784257770046)
¥0
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.

(ISBN: 9784532310981)
¥0
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.
導きの星(3)
(ISBN: 9784758430265)
¥946
在庫あり
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.
導きの星(1)
(ISBN: 9784894569430)
¥880
在庫あり
Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.Error:too_many_requests: number of allowed requests has been exceeded for this API. please try again soon.B00005EDI8
B00005R5J3
B00005Y0ZP
B00005Y102
B000066AEN
B00007G0LF
B00007G0LH
B00009XLKS
B0000CNXV2
B0000D0YSJ

あと、問題は1点、アマゾンでの在庫状況だが、これも近日中に解決予定。

アーカイブ

Books


Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /home/senmasa/smarty/libs/sysplugins/smarty_internal_template.php on line 719

Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_foreach is deprecated in /home/senmasa/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182

Deprecated: Creation of dynamic property Smarty_Variable::$do_else is deprecated in /home/senmasa/www/templates_c/7c1f3abd3a06fc72d86c2003d8b2eb302d41af9d_0.file.tsundoku.tpl.php on line 27
改訂2版 この1冊で合格! 村中一英の第2種衛生管理者 テキスト&問題集 有閑倶楽部 5 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 6 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 7 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 8 (りぼんマスコットコミックス) 有閑倶楽部 9 (りぼんマスコットコミックス) 有閑倶楽部 10 (りぼんマスコットコミックス) 有閑倶楽部 11 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 12 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 13 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 14 (りぼんマスコットコミックス) 有閑倶楽部 15 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 16 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 17 (りぼんマスコットコミックスDIGITAL) 有閑倶楽部 18 (りぼんマスコットコミックスDIGITAL) ゼンデギ (ハヤカワ文庫SF) かれはロボット (ハヤカワ文庫JA) クロックワーク・ロケット (新☆ハヤカワ・SF・シリーズ) エターナル・フレイム (新☆ハヤカワ・SF・シリーズ) アロウズ・オブ・タイム (新☆ハヤカワ・SF・シリーズ) 渦動破壊者―レンズマン・シリーズ 7 (創元推理文庫) 数学ガール/ポアンカレ予想 (「数学ガール」シリーズ6) 数学ガールの秘密ノート/確率の冒険

Link