/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/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