0.0.3 • Published 2 years ago
@developedbyant/aliexpress v0.0.3
Get json product and images from aliexpress website
How to import the module
import Aliexpress from "developedByAnt@aliexpress"
Start the module
const productId = "12233id123here2323"
const aliexpress = new AliExpress(productId)
// Start aliexpress
// It will the the information needed to start using all methods
await aliexpress.start()
Get product json object
const product = await aliexpress.product()
console.log(product)
Get product reviews
// How many pages to scrape 10 reviews per pages
// One page = 10 reviews if 10 reviews were founded
const maxPages = 2
const reviews = await aliexpress.reviews(maxPages)
console.log(reviews)