Archive for the ‘python’ Category

Catching up

Wednesday, May 22nd, 2002

Not sure how I could have missed mentioning this, but apparently I did. My little Google Outline Browser was featured quite prominently in Jon Udell’s Byte column last month. I’m quite gratified, and a little guilty that my own doctitles aren’t quite up to snuff.

A tip for Google API experimenters

Friday, April 12th, 2002

Check out Jython and use the Java API docs. Not only is Python a nicer language, but you can leave out the “get” and “set”. Place googleapi.jar in your jre/lib/ext directory and try the following:

import com.google
engine = com.google.soap.search.GoogleSearch()
engine.key = '00000000000000000000000'
engine.queryString = 'google api'
answer = engine.doSearch()
for result in answer.resultElements:
    print result.URL

(Replace 000… with your key)

Much nicer.