Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ducdev/aliexscrape

Repository files navigation

aliexscrape

Get Aliexpress product details in JSON

Installation

$ npm i --save aliexscrape

Usage

console.log(response)) .catch(error => console.log(error));">import AliexScrape from 'aliexscrape';

// or

var AliexScrape = require('aliexscrape');

AliexScrape('32853590425') // 32853590425 is a productId
.then(response => console.log(response))
.catch(error => console.log(error));

Command-line usage

$ git clone git@github.com:ducdev/aliexscrape.git
$ cd aliexscrape
$ npm install
$ npm link
$ scrape 32853590425

Example output

{"productId":"32853590425","productTitle":"Original Vaporesso SWAG Kit 80W Electronic Cigarette Kits With Vaporesso Swag Mod NRG SE NRG SE Mini Tank E-Cigarettes Vape Kit ","attributes":[{"title":"Color","options":[{"optionId":"14: 193","text":"Black"},{"optionId":"14:173","text":"Blue"},{"o ptionId":"14:366","text":"Orange"},{"optionId":"14:350853"," text":"Silver"}]},{"title":"Battery Capacity","options":[{"optionId":"1328:200660823","text":"3. 5ml Full Kit"},{"optionId":"1328:200660824","text":"2ml Full Kit"},{"optionId":"1328:200660825","text":"Only Swag Mod"}]},{"title":"Ships From","options":[{"optionId":"200007763:201336100","text":"C hina"},{"optionId":"200007763:201336103","text":"Russian Federation"}]}],"store":{"name":"E-cig Vape Store","id":"2953022"},"pics":["https://ae01.alicdn.com/kf/H TB1HaISXbZnBKNjSZFKq6AGOVXaq/Original-Vaporesso-SWAG-Kit-80W -Electronic-Cigarette-Kits-With-Vaporesso-Swag-Mod-NRG-SE-NR G-SE.jpg","https://ae01.alicdn.com/kf/HTB1cdCPX9tYBeNjSspkq6 zU8VXaf/Original-Vaporesso-SWAG-Kit-80W-Electronic-Cigarette -Kits-With-Vaporesso-Swag-Mod-NRG-SE-NRG-SE.jpg","https://ae 01.alicdn.com/kf/HTB1S6lXX21TBuNjy0Fjq6yjyXXag/Original-Vapo resso-SWAG-Kit-80W-Electronic-Cigarette-Kits-With-Vaporesso- Swag-Mod-NRG-SE-NRG-SE.jpg","https://ae01.alicdn.com/kf/HTB1 bHk8XFuWBuNjSszbq6AS7FXah/Original-Vaporesso-SWAG-Kit-80W-El ectronic-Cigarette-Kits-With-Vaporesso-Swag-Mod-NRG-SE-NRG-S E.jpg","https://ae01.alicdn.com/kf/HTB1Yog9XH5YBuNjSspoq6zeN FXaJ/Original-Vaporesso-SWAG-Kit-80W-Electronic-Cigarette-Ki ts-With-Vaporesso-Swag-Mod-NRG-SE-NRG-SE.jpg","https://ae01. alicdn.com/kf/HTB1TrBaX49YBuNjy0Ffq6xIsVXaG/Original-Vapores so-SWAG-Kit-80W-Electronic-Cigarette-Kits-With-Vaporesso-Swa g-Mod-NRG-SE-NRG-SE.jpg"],"variations":[{"pricing":"42.50"," discount":"34.00","combinedAttributes":["14:193","1328:20066 0825","200007763:201336100"]},{"pricing":"42.50","discount": "34.00","combinedAttributes":["14:173","1328:200660825","200 007763:201336100"]},{"pricing":"42.50","discount":"34.00","c ombinedAttributes":["14:366","1328:200660825","200007763:201 336100"]},{"pricing":"41.25","discount":"33.00","combinedAtt ributes":["14:350853","1328:200660825","200007763:201336100" ]},{"pricing":"62.00","discount":"49.60","combinedAttributes ":["14:193","1328:200660824","200007763:201336100"]},{"prici ng":"62.50","discount":"50.00","combinedAttributes":["14:193 ","1328:200660823","200007763:201336100"]},{"pricing":"62.00 ","discount":"49.60","combinedAttributes":["14:173","1328:20 0660824","200007763:201336100"]},{"pricing":"62.50","discoun t":"50.00","combinedAttributes":["14:173","1328:200660823"," 200007763:201336100"]},{"pricing":"62.00","discount":"49.60" ,"combinedAttributes":["14:366","1328:200660824","200007763: 201336100"]},{"pricing":"62.50","discount":"50.00","combined Attributes":["14:366","1328:200660823","200007763:201336100" ]},{"pricing":"61.00","discount":"48.80","combinedAttributes ":["14:350853","1328:200660824","200007763:201336100"]},{"pr icing":"61.25","discount":"49.00","combinedAttributes":["14: 350853","1328:200660823","200007763:201336100"]},{"pricing": "42.50","discount":"34.00","combinedAttributes":["14:193","1 328:200660825","200007763:201336103"]},{"pricing":"42.50","d iscount":"34.00","combinedAttributes":["14:173","1328:200660 825","200007763:201336103"]},{"pricing":"42.50","discount":" 34.00","combinedAttributes":["14:366","1328:200660825","2000 07763:201336103"]},{"pricing":"41.25","discount":"33.00","co mbinedAttributes":["14:350853","1328:200660825","200007763:2 01336103"]},{"pricing":"62.00","discount":"49.60","combinedA ttributes":["14:193","1328:200660824","200007763:201336103"] },{"pricing":"62.50","discount":"50.00","combinedAttributes" :["14:193","1328:200660823","200007763:201336103"]},{"pricin g":"62.00","discount":"49.60","combinedAttributes":["14:173" ,"1328:200660824","200007763:201336103"]},{"pricing":"62.50" ,"discount":"50.00","combinedAttributes":["14:173","1328:200 660823","200007763:201336103"]},{"pricing":"62.00","discount ":"49.60","combinedAttributes":["14:366","1328:200660824","2 00007763:201336103"]},{"pricing":"62.50","discount":"50.00", "combinedAttributes":["14:366","1328:200660823","200007763:2 01336103"]},{"pricing":"61.00","discount":"48.80","combinedA ttributes":["14:350853","1328:200660824","200007763:20133610 3"]},{"pricing":"61.25","discount":"49.00","combinedAttribut es":["14:350853","1328:200660823","200007763:201336103"]}]," properties":[{"propertyTitle":"Nominal Capacity","propertyDescription":"None"},{"propertyTitle":"Mo nitoring Function Of Smoking Number","propertyDescription":"No"},{"propertyTitle":"Built- in Or External Battery","propertyDescription":"External"},{"propertyTitle": "Atomizers Identification Function","propertyDescription":"Yes"},{"propertyTitle":"Mod el Number","propertyDescription":"Vaporesso SWAG Kit"},{"propertyTitle":"Compatible Battery","propertyDescription":"18650"},{"propertyTitle":"US B Charger","propertyDescription":"Yes"},{"propertyTitle":"Appe arance","propertyDescription":"Box Shape"},{"propertyTitle":"Temperature Control","propertyDescription":"Yes"},{"propertyTitle":"Over heating Protection Function","propertyDescription":"Yes"},{"propertyTitle":"Com patible Model","propertyDescription":"Vaporesso SWAG Kit"},{"propertyTitle":"Firmware Upgradeable","propertyDescription":"Yes"},{"propertyTitle":" TCR Adjustment Modes","propertyDescription":"Yes"},{"propertyTitle":"Brand Name","propertyDescription":"vaporesso"},{"propertyTitle":"D isplay screen","propertyDescription":"Yes"},{"propertyTitle":"Type" ,"propertyDescription":"Electric Mod"},{"propertyTitle":"Short-circuit Protection Function","propertyDescription":"Yes"},{"propertyTitle":"Mat erial","propertyDescription":"Metal"},{"propertyTitle":"Sili cone Case","propertyDescription":"No"},{"propertyTitle":"Low Voltage Alarm Function","propertyDescription":"Yes"},{"propertyTitle":"Mod ","propertyDescription":"Vaporesso Swag Mod"},{"propertyTitle":"Vaporesso Swag Tank 1","propertyDescription":"Vaporesso NRG SE Tank"},{"propertyTitle":"Vaporesso Swag Tank 2","propertyDescription":"Vaporesso NRG SE Mini Tank"},{"propertyTitle":"Vaporesso Swag Coil 1 ","propertyDescription":"Vaporesso GT2 0.4ohm"},{"propertyTitle":"Vaporesso Swag Coil 2","propertyDescription":"Vaporesso GT CCELL 0.5ohm"},{"propertyTitle":"Voltage Range","propertyDescription":"0-8.5V"},{"propertyTitle":"Bat tery","propertyDescription":"1*18650 battery (Not included)"},{"propertyTitle":"Power","propertyDescription":" 5-80W"},{"propertyTitle":"Output Modes","propertyDescription":"VW, CCW, CCT, VT, TCR, RTC, BYPASS"}],"description":" \n

Original Vaporesso SWAG Kit 80W Electronic Cigarette Kits With Vaporesso Swag Mod NRG SE NRG SE Mini Tank E-Cigarettes Vape Kit 

\n

\"SWAG-KIT\"\"SWAG-KIT-7\"\"SWAG-KIT-1\"\"SWAG-KIT-2\"\"SWAG-KIT-3\"\"SWAG-KIT-6\"\"SWAG-KIT-6-(2)\"

"}

Development

Want to contribute, folks? Great! PRs are welcome!

Todos

  • Fix known bugs
  • Make some improvements/optimizations

Try on Runkit

License

MIT

Releases

No releases published

Packages

Contributors