question

superdupercomputer avatar image
0 Likes"
superdupercomputer asked

HideDuplicateItems not working, using API, findItemsAdvanced, Python

The number of returned results does not change, with or without HideDuplicateItems, True. I've tried many variations, to no avail. Everything else works perfectly. 


    payload = {
        'keywords': 'dell laptop',
        'itemFilter': [
            {'name': 'LocatedIn', 'value': 'US'},
            {'name': 'HideDuplicateItems', 'value': True}
        ],
        'sortOrder': 'StartTimeNewest',
}

def get_results(payload):
    try:
        api = Finding(siteid='EBAY-US', appid=API_KEY, config_file=None)
        response = api.execute('findItemsAdvanced', payload)
        return response.dict()
    except ConnectionError as e:
        print(e)
        print(e.response.dict())



apifinditemsadvancedpython sdkhideduplicateitems
10 |600

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

wemakeitallwork avatar image
0 Likes"
wemakeitallwork answered

I wouldn't think this would matter, however, the examples show true in lowercase ("true" not "True").

10 |600

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

superdupercomputer avatar image
0 Likes"
superdupercomputer answered

Lowercase returns this:
NameError: name 'true' is not defined

10 |600

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

wemakeitallwork avatar image
0 Likes"
wemakeitallwork answered

try using a string rather than boolean value. ‘True’ or ‘true’.

10 |600

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.