-
-
Save davidtsadler/6993747 to your computer and use it in GitHub Desktop.
import ebaysdk | |
from ebaysdk import finding | |
api = finding(siteid='EBAY-GB', appid='<REPLACE WITH YOUR OWN APPID>') | |
api.execute('findItemsAdvanced', { | |
'keywords': 'laptop', | |
'categoryId' : ['177', '111422'], | |
'itemFilter': [ | |
{'name': 'Condition', 'value': 'Used'}, | |
{'name': 'MinPrice', 'value': '200', 'paramName': 'Currency', 'paramValue': 'GBP'}, | |
{'name': 'MaxPrice', 'value': '400', 'paramName': 'Currency', 'paramValue': 'GBP'} | |
], | |
'paginationInput': { | |
'entriesPerPage': '25', | |
'pageNumber': '1' | |
}, | |
'sortOrder': 'CurrentPriceHighest' | |
}) | |
dictstr = api.response_dict() | |
for item in dictstr['searchResult']['item']: | |
print "ItemID: %s" % item['itemId'].value | |
print "Title: %s" % item['title'].value | |
print "CategoryID: %s" % item['primaryCategory']['categoryId'].value |
Hi every one can any one please show me how to change ebay order status python api? Please
Hi every one can any one please show me how to change ebay order status python api? Please
I saw orders.py from ebaysdk-python. This might help in what your are trying to achieve.
https://github.com/timotheus/ebaysdk-python/blob/master/ebaysdk/poller/orders.py
Anyone know of a replacement for the dump module for python3?
#This file contains all the above fixes and is working for me as of 09-June-2020
import ebaysdk
from ebaysdk.finding import Connection as finding
api = finding(domain='svcs.sandbox.ebay.com', debug=True, appid='YOUR_APP_ID', config_file=None)
api.execute('findItemsAdvanced', {
'keywords': 'laptop',
'categoryId' : ['177', '111422'],
'itemFilter': [
{'name': 'Condition', 'value': 'Used'},
{'name': 'MinPrice', 'value': '200', 'paramName': 'Currency', 'paramValue': 'GBP'},
{'name': 'MaxPrice', 'value': '400', 'paramName': 'Currency', 'paramValue': 'GBP'}
],
'paginationInput': {
'entriesPerPage': '25',
'pageNumber': '1'
},
'sortOrder': 'CurrentPriceHighest'
})
dictstr = api.response.dict()
for item in dictstr['searchResult']['item']:
print("ItemID: %s" % item['itemId'])
print("Title: %s" % item['title'])
print("CategoryID: %s" % item['primaryCategory']['categoryId'])
How to filter out sellers you don't like?
Perhaps put the whole thing in the function and make the page a variable.
Ref: https://developer.ebay.com/DevZone/finding/CallRef/findItemsIneBayStores.html#Request.paginationInput