2010-06-01から1ヶ月間の記事一覧
githubもしくはopenpearでのコミットログを見ていると気づいてるかと思われますが、 最近は、Diggin_Http_Response_Charsetというのを作成しました。 http://openpear.org/package/Diggin_Http_Response_Charset http://github.com/sasezaki/Diggin_Http_Res…
たった*行のコードでHTML取得&解析をしたい場合はWeb::Scraperが便利をexthtmlを使った場合、こんな感じになります。 $ exthtml -x '//div[@id="topicsfb"]//li//text()' -a='Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)' http://ww…
大体3,4回目の結果を載っけてます。環境: $ \php -v PHP 5.3.2-1ubuntu4 with Suhosin-Patch (cli) (built: Apr 9 2010 08:23:39) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies$ pear list | gre…