前の記事 «:PHPで関数やメソッドの引数の数を柔軟にする方法
次の記事 »:PHPで複数ファイル内容を簡単に一括置換する:File_SearchReplace

del.icio.us のデータを簡単バックアップ : mysqlicious

2006年07月17日

スポンサード リンク
MySQLicious - del.icio.us to MySQL Mirroring [ nanovivid
MySQLicious is a tool for mirroring del.icio.us bookmarks into a MySQL database. Note that MySQLicious does not provide a mechanism for displaying bookmarks after they're in your database. That part is up to you, though there is some sample code in the tutorial to get you started.

del.icio.us のデータを簡単にMySQLにバックアップできるmysqliciousの紹介。
PHP4(cURL)+MySQLの環境で使えます。

提供されるのは単なるPHPスクリプトなので、次のように簡単に使えます。

<?php
require "MySQLicious.php";
$delicious = new MySQLicious("localhost", "MySQLdb", "MySQLuser", "MySQLpass");
$delicious->mirror("deliciousUser", "deliciousPass", "MySQLtable", "deliciousTag");
?>

このスクリプトをcronやpseudo-cron、あるいはWebCronなんかで定期的に叩けば自動バックアップ/ミラーリングが出来ます。

スポンサード リンク

投稿者 KJ : 2006年07月17日 15:04 | ブックマークに追加する Subscribe with livedoor Reader
間違いの指摘をしていただける方はメールでお願いします


本を執筆しました。