You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that with eBay's API we can't make a call that provides more than 100 entries. That's why i tryed to make several calls with different "pageNumber" in order to get 100 entries multiplied by the number of page i decided to choose.
But at the second call (the call with pageNumber=2), i have the following exception error :
for item in response.reply.searchResult.item: AttributeError: 'ResponseDataObject' object has no attribute 'item'
Please, do you know how to solve it ?
Here is my code :
from ebaysdk.finding import Connection as Finding
api = Finding(appid="XXX", config_file=None, siteid="EBAY-FR")
keywords=str(input("What keywords do you want to use ? : "))
for page in range(1,5):
request={
"keywords": keywords,
"paginationInput":
{
"entriesPerPage": 100,
"pageNumber": page
}
}
response = api.execute('findItemsAdvanced', request)
paginationOutput = response.reply.paginationOutput
print(paginationOutput)
for item in response.reply.searchResult.item:
try:
title=item.title
price=float(item.sellingStatus.convertedCurrentPrice.value)
listingType = item.listingInfo.listingType
url=item.viewItemURL
if price>0 and price<400 and listingType=="FixedPrice":
print("title : ", title)
print("price : ", price)
print("url : ", url, "\n")
except:
pass
The text was updated successfully, but these errors were encountered:
I know that with eBay's API we can't make a call that provides more than 100 entries. That's why i tryed to make several calls with different "pageNumber" in order to get 100 entries multiplied by the number of page i decided to choose.
But at the second call (the call with pageNumber=2), i have the following exception error :
for item in response.reply.searchResult.item: AttributeError: 'ResponseDataObject' object has no attribute 'item'
Please, do you know how to solve it ?
Here is my code :
The text was updated successfully, but these errors were encountered: