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 hotproducts:
hotproducts = aliexpress.get_hotproducts(keywords='bluetooth earphones', max_sale_price=3000)
print(hotproducts.products[0].product_main_image_url)
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
Close
Hashes for python-aliexpress-api-2.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198085afca8d1cba082d2906777fc41623d46a64a4cd9a843a20507b6cc8a4ad |
|
MD5 | c5d136a3eac29dfa9f14095fa8018950 |
|
BLAKE2b-256 | f2840db6eb5daf3c7c26a0d5356750049ea21dd5ec8686fba7f5d06fcf5272a7 |
Close
Hashes for python_aliexpress_api-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2e0fe482d0a7c2313926996bdcdece2b4997d7630f8f8c7191cfa6d7dac3f26 |
|
MD5 | d64521bb6601d9eb7c26ddb8a71e5041 |
|
BLAKE2b-256 | 8b414f31eada9df8aeb1e5dddf067715ff1aa163235930841dd4043e94b4397f |