How sudheer-ranga/aliexpress-product-scraper works
This package scrapes an AliExpress product page and returns normalized product JSON. The workflow starts with a caller invoking the public entry point, which launches a stealth-enabled browser, captures product API data, fetches optional description content and reviews, then builds the result with shipping and variant details. The README also documents product, store, rating, image, and price fields represented in the normalized result. Source excerpts show the main calls; external AliExpress API behavior is documented and implemented through response interception.
Main entry points: aliexpressProductScraper.js Page Scraper · transform.js Product JSON Builder · index.js Scrape API · reviews.js Review Fetcher
Components 11
Package Entry
- Scrape API
index.js
Scraping and Enrichment
- Page Scraper
src/aliexpressProductScraper.js - API Data Parser
src/parsers.js - Description Extraction
src/aliexpressProductScraper.js - Review Fetcher
src/reviews.js
Product Normalization
- Product JSON Builder
src/transform.js - Variant Mapper
src/variants.js - Shipping Mapper
src/shipping.js
Other components
- Package Caller
- AliExpress
- AliExpress Feedback
Connections 11
- Package Caller → Scrape API: invokes
README.md - Scrape API → Page Scraper: delegates to
index.js - Page Scraper → AliExpress: navigates page
src/aliexpressProductScraper.js - AliExpress → Page Scraper: sends API response
src/aliexpressProductScraper.js - Page Scraper → API Data Parser: parses response
src/aliexpressProductScraper.js - Page Scraper → Description Extraction: extracts description
src/aliexpressProductScraper.js - Page Scraper → Review Fetcher: fetches reviews
src/aliexpressProductScraper.js - Review Fetcher → AliExpress Feedback: requests review pages
src/reviews.js - Page Scraper → Product JSON Builder: builds result
src/aliexpressProductScraper.js - Product JSON Builder → Variant Mapper: maps variants
src/transform.js - Product JSON Builder → Shipping Mapper: maps shipping
src/transform.js