スクリーンショット(MacOSXの場合)
画面全体のスクリーンショットになってしまいますが、MacOSXならばscreencaptureコマンドがあります。Publish::PipeとNotify::OpenBrowserを使って作ってみました。
plugins: - module: CustomFeed::Debug config: title: BrowserCapture entry: - title: nhk link: http://www.nhk.or.jp/special/onair/planet.html - module: Publish::Pipe config: command: /Users/akihito/plagger/capture.sh & - module: Notify::OpenBrowser
capture.shにはこんな感じで書いておきます。15秒待ってサイトの描画が完了したころを見計らってキャプチャしてます。
#!/bin/sh sleep 15 screencapture /Users/akihito/plagger/site.png
実行結果
「entryのlinkをブラウザで表示→screencaptureでキャプチャ」を繰り返せば全てのサムネイルを作れそうだけど、どんなふうに作ればいいのかなぁ。