0

Hi,

I'm using Google Base API for python to insert data in Google Merchant centre. The code is working fine till I asked for inserting the data (the last 3 lines of the code). Can anybody help me to figure out where the error can be.

import gdata.base.service
import gdata.service
import atom 
import gdata.base
gb_client = gdata.base.service.GBaseService() 
gb_client.email = raw_input('Please enter your username: ') 
gb_client.password = raw_input('Please enter your password: ')
print 'Logged in' 
gb_client.ProgrammaticLogin()
item = gdata.base.GBaseItem() 
item.author.append(atom.Author(name=atom.Name(text='Chris'))) 
item.title = atom.Title(text='Cobra S2 Offset') 
item.link.append(atom.Link(rel='alternate', link_type='text/html',     
  href='http://www.google.com/feeds/item')) 
item.label.append(gdata.base.Label(text='Golf Driver')) 
item.item_type = gdata.base.ItemType(text='products') 
item.AddItemAttribute(name='Cobra S2 Offset', value='1') 
result = gb_client.InsertItem("Cobra S2 Offset")
insertion_time = result.published.text
my_entry_id = result.id.text
1
Contributor
1
Reply
3
Views
7 Years
Discussion Span
Last Post by Sagar14
0

I just want to add that I'm getting 404 error.The error is coming once I'm including 18 onwards.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.