Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 981 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 981 Bytes

Aliexpress Importer

Retrieve product info from AliExpress in a form of a Python dictionary, or whatever the hell you want.

Usage

Setting up

from aliexpress_importer import *

IMPORTER = Importer()

Retrieving product data

product: Product = IMPORTER.import_product(url)

Every data type comes with hinting.

Turning data into a dictionary (JSON)

product.asdict()

Sample scripts

to_excel.py

Fetches product data from URLs specified in urls.txt (separated by line break). Then copies an Excel table to the clipboard, which you can then paste into any excel table.

Usage:

py ./to_excel.py <urls.txt>

to_json.py

Exports product data from the provided URL into 2 files:

  • raw.json - containing raw product related data, scraped directly from Ali
  • product.json - containing parsed product data, having the same structure as the returned Product class

Usage:

py ./to_json.py <url>