aliexscrape
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -81,3 +81,3 @@ const rp = require('request-promise'); | ||
wrapped.find('div:has(div:has(div:has(div:has(div:has(a)))))').remove(); // remove related products widgets like 32831471018 | ||
data.description = wrapped.html().replace(/(https?:\/\/(.+?\.)?aliexpress\.com(\/[A-Za-z0-9\-\._~:\/\?#\[\]@!$&'\(\)\*\+,;\=]*)?)/g, '#'); // replace all existing aliexpress urls in description to # | ||
data.description = wrapped.html().replace(/(https?:\/\/+[a-z0-9A-Z-.]+aliexpress\.com(\/[A-Za-z0-9\-\._~:\/\?#\[\]@!$&'\(\)\*\+,;\=]*)?)/g, '#'); // replace all existing aliexpress urls in description to # | ||
return JSON.stringify(data); | ||
@@ -84,0 +84,0 @@ }) |
{ | ||
"name": "aliexscrape", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Get Aliexpress product details in JSON", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14267