ebayfeed
Download item feeds from eBay RESTful API.
NOTE: As of Nov.2018 Feed API (v1_beta.10.0) are available only for the following marketplaces:
- EBAY-DE - eBay Germany (ebay.de)
- EBAY-GB - eBay Great Britain (ebay.co.uk)
- EBAY-US - eBay USA (ebay.com)
Package will be updated as soon as other marketplaces are added. More info here.
Installation
To install, use pip or easy_install:
$ pip install --upgrade ebayfeed
or
$ easy_install --upgrade ebayfeed
How to create a keyset
Sign in to your eBay Developers Program account to create an App ID and a keyset.
You can test your application in eBay's sandbox environment without limitations.
To download item feeds from eBay's production environment, your keyset needs to be granted access to https://api.ebay.com/oauth/api_scope/buy.product.feed OAuth scope.
You can obtain such authorization by completing all the steps described here: apply for production access.
Examples
Get all items for {'Travel': 3252} category and convert them to pandas dataframe:
import ebayfeed
from pandas import read_table
from pandas.compat import StringIO
# download tsv feed
credentials = ebayfeed.Credentials(client_id, client_secret)
feed = ebayfeed.get_feed(credentials, 3252, ebayfeed.SCOPE_ALL_ACTIVE, ebayfeed.EBAY_US)
# convert to dataframe
df = read_table(StringIO(tsv_feed.splitlines()))
Use eBay's sandbox environment instead of production:
sandbox_api = ebayfeed.Api(env=ebayfeed.ENVIRONMENT_SANDBOX)
credentials = ebayfeed.Credentials(client_id, client_secret, api=sandbox_api)
Get items listed on 2018-10-03 for {'Toys & Hobbies': 220} category:
feed = ebayfeed.get_feed(credentials, 220, ebayfeed.SCOPE_NEWLY_LISTED, ebayfeed.EBAY_US, date='20181003')
Get top-level category names and IDs for a given marketplace from Taxonomy API:
categories = ebayfeed.get_macro_categories(credentials, ebayfeed.EBAY_DE)
Get access token to taxonomy and buy.item.feed OAuth scopes (cached until expiration):
credentials = ebayfeed.Credentials(client_id, client_secret)
access_token = credentials.access_token
References
Metadata
Release files for ebayfeed 2018.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ebayfeed-2018.11.1.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ebayfeed-2018.11.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / ebayfeed-2018.11.1.tar.gz
| Download URL | ebayfeed-2018.11.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1389ddb08458294ffba3233e2851ca095861803bc74420d0ca69779f3b6a23b6
|
|
BLAKE2b-256 checksum How to use checksums |
d06c3ada9ceb43f1547b3535cd9d749b247d98d6132153ff8bfb4c15744711f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
|
Release files / ebayfeed-2018.11.1-py3-none-any.whl
| Download URL | ebayfeed-2018.11.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0c3dc0e52160d9358ab0ab43bcab178ce9c2e43d3698db7c75b97606218325f
|
|
BLAKE2b-256 checksum How to use checksums |
cdf58d4e9ff338cbd4fc57ef02b738088ce6513813149b63c3f4273c5c204b06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
|