question

oasis701 avatar image
0 Likes"
oasis701 asked ·

I can't find sold listings, even if I called following python code.

import json import pprint from collections import OrderedDict from ebaysdk.finding import Connection as finding ID = “YOUR OWN ID” api = finding(appid=ID, config_file=None) response = api.execute('findCompletedItems', #{'Keyword':'guitar'}, {'categoryId': '619'}, {"DetailLevel": "ReturnAll", "ActiveList.Pagination.EntriesPerPage": 100, "ActiveList.Pagination.PageNumber": 100, "SoldList.Pagination.PageNumber": 100, 'SoldList.Pagination.EntriesPerPage': 100}).json() d = json.loads(response) pprint.pprint(d, width=100) -------- I run this code, which is guitar category ID, then, I got lists. But, the each item number appeared is NOT sold. Would you please let me know about how I write codes in order to get sold item numbers. Regard
pythonfindcompleteditemssearchsdksold-item-list
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
oasis701 avatar image
0 Likes"
oasis701 answered ·
import json import pprint from ebaysdk.finding import Connection as finding ID = “YOUR OWN ID” api = finding(appid=ID, config_file=None) response = api.execute('findCompletedItems', {'categoryId': '619'}, {"DetailLevel": "ReturnAll", "ActiveList.Pagination.EntriesPerPage": 100, "ActiveList.Pagination.PageNumber": 100, "SoldList.Pagination.PageNumber": 100, 'SoldList.Pagination.EntriesPerPage': 100}).json() d = json.loads(response) pprint.pprint(d, width=100) ------------------------------------- I rewrote the codes to let you read easlly
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.