parfumo: unisex
https://www.parfumo.com/Perfumes/Tops/Unisex
by js_test
JavaScript
// document.querySelector('.tabsB.mt-0-5 ul li:nth-of-type(2) a').click()
const previousCollectionList = JSON.parse({})
const collectionList = Array.from(document.querySelectorAll('.main .pgrid.mt-2 .col.col-normal')).reduce((results, currentNode) => {
const brand = currentNode.querySelector('.brand > a').innerText
const name = currentNode.querySelector('.name > a').innerText.toLowerCase();
/* if (!previousCollectionList[name]) {
return results
} */
return {
...results,
[name]: {
name,
brand
}
};
}, {});
/* collectionList; */
JSON.stringify(collectionList);