Download item feeds from eBay RESTful APIs.
Project description
ebayfeed
Download item feeds from the new eBay RESTful APIs.
NOTE: As of Oct.2018 Feed API is supported only on:
- 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
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()))
Get items listed on 2018-10-03 for 'Toys & Hobbies' (220) category:
import ebayfeed
# download tsv feed
credentials = ebayfeed.Credentials(client_id, client_secret)
feed = ebayfeed.get_feed(credentials, 220, ebayfeed.SCOPE_NEWLY_LISTED, ebayfeed.EBAY_US, date='20181003')
Get OAuth 2.0 access token for buy.item.feed scope (cached until expiration):
import ebayfeed
credentials = ebayfeed.Credentials(client_id, client_secret)
access_token = credentials.access_token
Connect to eBay sandbox APIs:
import ebayfeed
sandbox_api = ebayfeed.Api(env=ebayfeed.ENVIRONMENT_SANDBOX)
credentials = ebayfeed.Credentials(client_id, client_secret, api=sandbox_api)
References
- eBay API documentation: https://developer.ebay.com/api-docs/buy/feed/resources/item/methods/getItemFeed
- eBay categories map: https://www.isoldwhat.com/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ebayfeed-2018.10.5.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for ebayfeed-2018.10.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd89f95ca9dec9bf895687a80486a0eeeee0e937f6246febb47a4c7d987d5783 |
|
MD5 | 469830dc18cd7445a77f60e3980265aa |
|
BLAKE2b-256 | 57c0081f995903cc99c41aed9bc588cdf94d64764ac828946d53f1866aa2f61f |