Last active
September 11, 2023 15:44
-
-
Save jdart/9808afa8ef5a5b38c5f85fd02441ee0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This will put a csv version of an aliexpress cart into your clipboard (to be pasted and saved manually). | |
// Run this from chrome dev tools - you might need to tweak some of the search replaces for your currency | |
copy(['url, name, sku, qty, price, shipping', ...$$('.cart-product').map((cp) => [ | |
$$('a', cp)[0].href, | |
$$('.cart-product-name', cp)[0].innerText.replace(',', '-'), | |
$$('.cart-product-sku', cp)[0]?.innerText || '', | |
$$('input.comet-input-number-input', cp)[0].value, | |
$$('.cart-product-price', cp)[0].innerText.replace('C$', ''), | |
$$('.cart-product-ship', cp).at(-1).innerText.replace('+ Shipping:C$', '').replace('Free shipping', '0'), | |
].join(','))].join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment