fatal1ty161 / python-aliexpress-api-client

Python client library for AliExpress API

Home Page:http://portals.aliexpress.com/help/help_center_API.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AliExpress API Client

Python client library for AliExpress API

Usage example

Configuration:

from aliexpress_api_client import AliExpress

aliexpress = AliExpress('api_key', 'affiliate_id')

Get product list:

products = aliexpress.get_product_list(['productId', 'productTitle', 'salePrice'])

for product in products:
    print '#%s %s: %s' % (product['productId'], product['productTitle'], product['salePrice'])

Get product details:

product = aliexpress.get_product_details(['productId', 'productTitle', 'salePrice'], product_id)

print '#%s %s: %s' % (product['productId'], product['productTitle'], product['salePrice'])

Get promotion links (require affiliate_id):

links = api.get_promotion_links(['url', 'promotionUrl'], urls)

for link in links['promotionUrls']:
    print '%s: %s' % (link['url'], link['promotionUrl'])

About

Python client library for AliExpress API

http://portals.aliexpress.com/help/help_center_API.html

License:MIT License


Languages

Language:Python 100.0%