Closed marlon-wiprud closed 4 years ago
I've the same code as @marlon-wiprud and i'm facing the issue. What is wrong?
for item in response.reply.searchResult.item:
print(f"Title: {item.title}, Price: {item.sellingStatus.currentPrice.value}")
'ResponseDataObject' object has no attribute 'item'
Request seems to work but the response data object is empty.
It appears the sandbox environment doesn't contain any listings. You might consider switching to prod or filing it as an issue on the development site.
On Sat, Nov 30, 2019 at 10:34 AM gensis20100 notifications@github.com wrote:
I'm facing the issue. What is wrong?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timotheus/ebaysdk-python/issues/291?email_source=notifications&email_token=AAA2QX7CHFTRVER76G4XNZ3QWKW2LA5CNFSM4JOIFSQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQRCTY#issuecomment-560009551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2QX5Y7JQ6ITFE7WOTFDLQWKW2LANCNFSM4JOIFSQQ .
Just getting started with this library and for some reason my call to
findItemsAdvanced
will return 0 items regardless of keywords searched.I am sure I am overlooking something - here is the code
from ebaysdk.exception import ConnectionError from ebaysdk.finding import Connection try: api = Connection(config_file='ebay.yaml', siteid="EBAY-US", https=True, domain='svcs.sandbox.ebay.com') params = { 'keywords': 'books', 'paginationInput': { 'entriesPerPage': 100 } } response = api.execute('findItemsAdvanced', params) print(response.json()) except ConnectionError as e: print(e) print(e.response.dict())
and the response:
{"ack": "Success", "version": "1.13.0", "timestamp": "2019-11-17T04:36:47.814Z", "searchResult": {"_count": "0"}, "paginationOutput": {"pageNumber": "0", "entriesPerPage": "100", "totalPages": "0", "totalEntries": "0"}, "itemSearchURL": "https://shop.sandbox.ebay.com/i.html?_nkw=books&_ddo=1&_ipg=100&_pgn=1"}
any pointers greatly appreciated.
This one is working for me now. We probably need to close this issue.
Just getting started with this library and for some reason my call to
findItemsAdvanced
will return 0 items regardless of keywords searched.I am sure I am overlooking something - here is the code
and the response:
any pointers greatly appreciated.