Skip to content

Instantly share code, notes, and snippets.

@a-eid
Created August 5, 2017 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-eid/2131f4fbabbb972a70c9c958a3d0df36 to your computer and use it in GitHub Desktop.
Save a-eid/2131f4fbabbb972a70c9c958a3d0df36 to your computer and use it in GitHub Desktop.
const cheerio = require("cheerio");
const rp = require("request-promise-native");
(async () => {
const html = await rp(
"https://fr.aliexpress.com/store/product/Summer-Women-Dress-Vestidos-Casual-Clothing-Female-Tropical-Bohemian-Mini-Dress-Beach-Vestidos-De-Renda-Ladies/620009_32282871144.html?spm=a2g05.8005319.2001.3.mH47kQ&sdom=703.123483.111126.0_32282871144"
);
const $ = cheerio.load(html)
const productName = $("h1.product-name")
console.log(productName.text())
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment