How to use ebay sdk in python?

I found this sample code to make an ebay request from here , and also download ebay-sdk for Python. How can I install sdk and integrate this code with it?

from ebaysdk import finding, nodeText

f = finding()
f.execute('findItemsAdvanced', {'keywords': 'shoes'})

dom    = f.response_dom()
mydict = f.response_dict()
myobj  = f.response_obj()

print myobj.itemSearchURL

# process the response via DOM
items = dom.getElementsByTagName('item')

for item in items:
    print nodeText(item.getElementsByTagName('title')[0])
+4
source share
1 answer

This is a fairly simple process.

1) Go to http://developer.ebay.com/ , register there and get the application ID key.

2) You can just do 'pip install ebaysdk' to install ebaysdk

3) Copy this file to the same directory https://github.com/timotheus/ebaysdk-python/blob/master/ebay.yaml. In this file, replace the appid with what you created in step 1.

4) Follow the example, this time it will work :)

+6
source

All Articles