Skip to main content

AliExpress API wrapper for Python

Project description

AliExpress API wrapper for Python

A simple Python wrapper for the AliExpress Open Platform API. This module allows getting information and affiliate links from AliExpress using the official API in an easier way.

PyPI Python License Support

Features

Installation

You can install or upgrade the module with:

pip install python-aliexpress-api --upgrade

Usage guide

Import and initialize the API:

from aliexpress_api import AliexpressApi, models
aliexpress = AliexpressApi(KEY, SECRET, models.Language.EN, models.Currency.EUR, TRACKING_ID)

Get products information:

products = aliexpress.get_products_details(['1000006468625', 'https://aliexpress.com/item/1005003091506814.html'])
print(products[0].product_title, products[1].target_sale_price)

Get affiliate link:

affiliate_links = aliexpress.get_affiliate_links('https://aliexpress.com/item/1005003091506814.html')
print(affiliate_links[0].promotion_link)

Get hotproducts:

hotproducts = aliexpress.get_hotproducts(keywords='bluetooth earphones', max_sale_price=3000)
print(hotproducts.products[0].product_main_image_url)

Get categories:

parent_categories = aliexpress.get_parent_categories()
child_categories = aliexpress.get_child_categories(parent_categories[0].category_id)

License

Copyright © 2020 Sergio Abad. See license for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-aliexpress-api-3.0.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

python_aliexpress_api-3.0.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file python-aliexpress-api-3.0.0.tar.gz.

File metadata

  • Download URL: python-aliexpress-api-3.0.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for python-aliexpress-api-3.0.0.tar.gz
Algorithm Hash digest
SHA256 71c54eab714888329e4dee94b1b311179f93b54253f82604eaa643f0feca6fbe
MD5 2c323da525348816bc722f991ba8919d
BLAKE2b-256 45e39a309fa8ef18bbd059a609216b0f7f88568620412d47e451fc551a4d5481

See more details on using hashes here.

File details

Details for the file python_aliexpress_api-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_aliexpress_api-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84543d83dd8a7b9adfc0efd952fd1daf40b363c9576d07e6f7d80df4b5e926a1
MD5 9acf6f83663e4b24ee963cd433e5cb00
BLAKE2b-256 11144081aa7d3b13f6bd34b0dc50d0c35df43516a77be9591b217d91eb8c3b7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page