How ducdev/aliexscrape works
aliexscrape is a small AliExpress product scraper. Its main workflow accepts a product ID through either the JavaScript API or CLI, fetches the product page, extracts product and variation details, fetches and cleans the description, and returns JSON. These stages are implemented in index.js rather than separate modules; the source excerpt shows the requests and parsing flow. The CLI delegates to the same API.
Main entry points: index.js Scraper API · cli.js CLI entry
Components 10
Other components
- API caller
- CLI user
- CLI entry
cli.js - Scraper API
index.js - Product page
- Product extraction
index.js - Description fetch
index.js - Description source
- Description cleanup
index.js - JSON result
Connections 10
- API caller → Scraper API: calls with ID
README.md - CLI user → CLI entry: runs scrape
README.md - CLI entry → Scraper API: calls
cli.js - Scraper API → Product page: requests page
index.js - Product page → Product extraction: returns HTML
index.js - Product extraction → Description fetch: requests description
index.js - Description fetch → Description source: fetches source
index.js - Description source → Description cleanup: returns content
index.js - Description cleanup → JSON result: serializes data
index.js - Scraper API → JSON result: returns result
README.md