这是我的代码:
from ebaysdk.finding import Connection
page_number = 1
num = 1
try:
api = Connection(appid='xxxxxxxxxxxxxxxxxxxxx', config_file=None, siteid='EBAY-DE')
api_request = {
'keywords': 'isbn',
'categoryId': '267',
'descriptionSearch': True,
'paginationInput': {
'entriesPerPage': '100',
'pageNumber': page_number },
}
response = api.execute('findItemsAdvanced', api_request)
reply = response.reply
url = response.reply.itemSearchURL
totalentries = response.reply.paginationOutput.totalEntries
#item = response.reply.searchResult.item[num]
except :
print "Error dude"
print url
print totalentries
我的问题是:
虽然我将其设置为True,但未启用descriptionSearch。 我做错了什么?
文档说明describeSearch需要我提供的布尔值(参见here)。
descriptionSearch的默认设置为False,但我的代码应该将其设置为True吗?