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.
Features
- Object oriented interface for simple usage.
- Requests follow the official documentation.
- Ask for new features through the issues section.
- Join our Telegram group for support or development.
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ba0d0246d6542e5cedb0bd0fa2a9bf2b7589871b42a6dd18c054d029d62f2d87
|
|
MD5 |
55cafda83f26ebbbac95d931fbd5cc7a
|
|
BLAKE2b-256 |
450255f857fe9c6e850c2492b66e9a4e63b26e161656f279a94dff7bc507fa6b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
python_aliexpress_api-3.1.0.tar.gz
-
Subject digest:
ba0d0246d6542e5cedb0bd0fa2a9bf2b7589871b42a6dd18c054d029d62f2d87
- Sigstore transparency entry: 157139379
- Sigstore integration time:
-
Permalink:
sergioteula/python-aliexpress-api@a07eaee083e19173ace5970150e37155a0e3b4a2
-
Branch / Tag:
refs/tags/v3.1.0
- Owner: https://github.com/sergioteula
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@a07eaee083e19173ace5970150e37155a0e3b4a2
-
Trigger Event:
release
-
Statement type:
File details
Details for the file python_aliexpress_api-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: python_aliexpress_api-3.1.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c6c35f0ff32ee6f8e462b34feacecddf9b753e83b3f23ae0bf1eae83480369e4
|
|
MD5 |
26055e0e516f7f53152879b38ed834d8
|
|
BLAKE2b-256 |
1e3a6a23ded148861dbf9576d538cc3732bfaa54bfb8800b3fd2cfb5b90520a8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
python_aliexpress_api-3.1.0-py3-none-any.whl
-
Subject digest:
c6c35f0ff32ee6f8e462b34feacecddf9b753e83b3f23ae0bf1eae83480369e4
- Sigstore transparency entry: 157139382
- Sigstore integration time:
-
Permalink:
sergioteula/python-aliexpress-api@a07eaee083e19173ace5970150e37155a0e3b4a2
-
Branch / Tag:
refs/tags/v3.1.0
- Owner: https://github.com/sergioteula
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@a07eaee083e19173ace5970150e37155a0e3b4a2
-
Trigger Event:
release
-
Statement type: