Socket
Socket
Sign inDemoInstall

python-aliexpress-api

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    python-aliexpress-api

AliExpress API wrapper for Python


Maintainers
1

Readme

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

  • 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)

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.

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc