Return to Snippet

Revision: 4209
at November 7, 2007 06:28 by arcturus


Updated Code
#!/usr/bin/python

import gdata.service

#Get the generic GData service
gservice = gdata.service.GDataService()

#Set the server we are going to work with
gservice.server = "www.google.com"

#User id for google notebook to use: 09641038559637245294
#(see google notebook sharing options to optains yours)
#Get the feed for shared notebooks
feed = gservice.GetFeed("/notebook/feeds/09641038559637245294")
#This call is the same that doing this:
# curl http://www.google.com/notebook/feeds/09641038559637245294

#For each notebook in feeds use gdata api to extract info
for notebook_entry in feed.entry:
	print "Notebookt: %s" % notebook_entry.title.text
	print "URI: %s" % notebook_entry.GetSelfLink().href

Revision: 4208
at November 7, 2007 06:23 by arcturus


Initial Code
#!/usr/bin/python

import gdata.service

#Get the generic GData service
gservice = gdata.service.GDataService()

#Set the server we are going to work with
gservice.server = "www.google.com"

#User id for google notebook to use: 09641038559637245294
#Obtain the feed for shared notebooks
feed = gservice.GetFeed("/notebook/feeds/09641038559637245294")
#This is the same that doing this:
# curl http://www.google.com/notebook/feeds/09641038559637245294

#For each notebook in feeds
for notebook_entry in feed.entry:
	print "Notebookt: %s" % notebook_entry.title.text
	print "URI: %s" % notebook_entry.GetSelfLink().href

Initial URL

                                

Initial Description

                                

Initial Title
GData python client accesing google notebook

Initial Tags
python

Initial Language
Python