htmlSQLでモバイルSEOを簡単にシステムツール化して管理する | 携帯サイトをつくろう。 今日はモバイルSEOに絶大な効果を発揮するであろう便利なPHPライブラリをご紹介します。htmlSQLでモバイルSEOを簡単にシステムツール化して管理する、という記事が面白そうだったので紹介。 紹介されているのはSEOに活用する方法ですが、htmlSQLでスクレイピングする方法として便利に使えそうですね。 HTMLの構造をとるのに便利な仕組みとしてxpathがありますが、htmlSQLでは、select * 〜みたいな感じでHTMLのaタグを取ったりできるみたいです。 Xpathの仕様を覚えなくても、sqlをしっている人にはより馴染みのある仕様かもですね。 関連エントリ PHPでのスクレイピングに役立つライブラリ色々 ニコニコ動画スクレイピング用ライブラリ「phpNico」