Google Web APIのライセンスキーをゲットしてから長いことほったらかしにしていましたが、Google APIのPythonインターフェースであるPyGoogleの0.5.3をダウンロードしてインストールしました。同梱されていたreadme.txtに従い試しに実行してみたところ、以下のような感じ。
apple:~ mits$ python Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import google >>> google.LICENSE_KEY = 'YOUR_LICENSE_KEY' >>> data = google.doGoogleSearch('blogsetomits') >>> for result in data.results: ... print result.URL ... http://matatabi.homeip.net/blog/setomits http://matatabi.homeip.net/blog/setomits/116 http://a.hatena.ne.jp/kzslim/ http://www.liris.org/ http://newworld.ddo.jp/turky/ http://clip.funkybusinesslife.com/archives/category/it_tech_mania.html http://somethingred.dip.jp/blog/ReST/ http://somethingred.dip.jp/blog http://weblog.his-usa.com/ http://blog.fukumo.com/

はて、どう使おうかいな。
Posted by setomits at 10:42 | Comments: 0
Leave a comment
Required fields are marked with *
search
calendar
Sep 2010
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
2627282930  
archives
photos on flickr
www.flickr.com
bookmarks on delicious