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

3

7

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.

Luscious answered 22/2, 2012 at 4:38 Comment(2)
You're not going to be obsolete or out of date if you use Python 2.7.x and the support and libraries available are far better...Theis
Consider updating one of the libraries to work with Python 3. ebay-python-sdk looks fairly small and actively maintained, so that's a good bet.Adherence
S
12

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

PS: I wrote it.

Sybaris answered 28/5, 2012 at 7:9 Comment(7)
You need the GetItem call: developer.ebay.com/devzone/xml/docs/Reference/eBay/GetItem.html, some sample code in java: developer.ebay.com/devzone/javasdk-jaxb/docs/libref/com/ebay/… Unfortunately, I have not implemented it yet in python-ebay. Would love if you could implement it here: github.com/roopeshvaddepally/python-ebay/blob/master/ebay/…Sybaris
could I use the getsingleitem? that ones also seems to work, no?Spiegeleisen
I think the ebay shopping is good enough... I am trying to use the API to reproduce the following search: ebay.com/sch/PC-Laptops-Netbooks-/177/…, and get the same number of results, then I'd try to get info about each single item, does that sound doable? a good stratregy?Spiegeleisen
Well sure, but you won't get all the info about an item. But depends on how much you actually need.Sybaris
It seems to be ok but I am still struggling on how to reproduce a given search, like this one: http://www.ebay.com/sch/PC-Laptops-Netbooks-/177/i.html?_from=R40&_nkw=hp+laptop&_dmpt=Laptops_Nov05&Type=Notebook&rt=nc. If I use FindProducts I do not get all the hp laptops, and I am not sure how to reproduce the exact same results as in the search, do you have any suggestion about it?Spiegeleisen
I think, you need to use developer.ebay.com/DevZone/finding/CallRef/… to simulate the exact search as on the ebay search page.Sybaris
This does not seem to support Python 3 :(Movable
R
3

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.

Roybn answered 9/10, 2013 at 12:17 Comment(1)
FWIW, ebaysdk-python is listed on go.developer.ebay.com/ebay-sdksBanian
M
3

The official eBay page https://go.developer.ebay.com/ebay-sdks recommends https://github.com/timotheus/ebaysdk-python . Currently ebaysdk-python has been updated 9 days ago and regularly since 2011, while python-ebay hasn't been updated for 20 months.

Megaspore answered 7/10, 2015 at 12:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.