Skip to content

jebrage/python-aliexpress-api-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%