Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing the eBay Developer's API through Python? [closed]

I've been searching for a library to use to access the eBay Dev API (using Python 3) for quite some time, but the sources I've found either don't specify the use of Python 3 (and I've learned to assume that this means they use 2.x) or haven't been updated for years.

Can somebody point me in the right direction? Is there a library I'm missing? Or should I try to implement it myself? If I have to implement it myself...any words/tutorials to help? I'm really confused here....thanks in advance.

eBay API can be found in this general link: https://www.x.com/developers/ebay/documentation-tools/tutorials

And 2.7x isn't obsolete? Pray tell why it won't be in a couple years? Or...just...what?

sigh due to the words spoken here and read elsewhere...I'll just bite the bullet and re-learn Python in 2.7.x....whatever. Thanks anyways.

like image 788
Aaron Tp Avatar asked Feb 22 '12 04:02

Aaron Tp


2 Answers

python-ebay is a python wrapper for eBay APIs. It covers most of the eBay APIs.

PS: I wrote it.

like image 89
zengr Avatar answered Sep 19 '22 23:09

zengr


I tried python-ebay but it doesn't implement every function of the Finding API (for example, there is no findCompletedItems function).

The alternative ebaysdk-python seems to be more actively maintained, is a little more flexible and does everything I need in a more simple way (IMO).

For example, getting completed items for a category is as simple as:

api = finding(appid='APP_ID')
api.execute('findCompletedItems', {'categoryId': '619'})
print api.response_dict()

The dictionary that's passed to the execute function exactly mirrors the eBay Finding API documentation, so if you can read that, you can basically do anything you need with the above three line of code.

like image 43
HorseloverFat Avatar answered Sep 19 '22 23:09

HorseloverFat