3 messages in com.googlegroups.google-base-data-apiRe: Python examples?
FromSent OnAttachments
Rocco25 Aug 2006 02:26 
Google Base Guide25 Aug 2006 15:24 
BP11 Sep 2006 12:36 
Subject:Re: Python examples?
From:BP (bett@gmail.com)
Date:09/11/2006 12:36:30 PM
List:com.googlegroups.google-base-data-api

GData feeds can be returned as RSS so I am using feedparser.org in this example.

import feedparser import urllib, urllib2

query = urllib.quote('[item type: housing] seattle') limit = (1, 3) req = urllib2.Request('http://www.google.com/base/feeds/snippets?bq=%s&alt=rss&start-index=%d&max-results=%d' % (query, limit[0], limit[1])) req.add_header('X-Google-Key', 'key=YOUR_KEY_HERE') q = urllib2.urlopen(req) f = feedparser.parse(q.read()) for j in f.entries: print j.title, j.date

Hope this helps.