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 products:

response = aliexpress.get_products(keywords='bluetooth earphones', max_sale_price=3000)
print(response.products[0].product_title)

Get hotproducts:

response = aliexpress.get_hotproducts(keywords='bluetooth earphones', max_sale_price=3000)
print(response.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.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

python_aliexpress_api-3.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file python_aliexpress_api-3.1.0.tar.gz.

File metadata

  • Download URL: python_aliexpress_api-3.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for python_aliexpress_api-3.1.0.tar.gz
Algorithm Hash digest
SHA256 ba0d0246d6542e5cedb0bd0fa2a9bf2b7589871b42a6dd18c054d029d62f2d87
MD5 55cafda83f26ebbbac95d931fbd5cc7a
BLAKE2b-256 450255f857fe9c6e850c2492b66e9a4e63b26e161656f279a94dff7bc507fa6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_aliexpress_api-3.1.0.tar.gz:

Publisher: python-publish.yml on sergioteula/python-aliexpress-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for python_aliexpress_api-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6c35f0ff32ee6f8e462b34feacecddf9b753e83b3f23ae0bf1eae83480369e4
MD5 26055e0e516f7f53152879b38ed834d8
BLAKE2b-256 1e3a6a23ded148861dbf9576d538cc3732bfaa54bfb8800b3fd2cfb5b90520a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_aliexpress_api-3.1.0-py3-none-any.whl:

Publisher: python-publish.yml on sergioteula/python-aliexpress-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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