Last active
November 10, 2024 00:41
-
-
Save myaosato/1e5a8cf9ca97fff1ab616bd950c71222 to your computer and use it in GitHub Desktop.
Snippets
This file contains hidden or 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
| // 2024-11-10 | |
| Array.from(document.getElementById('g-items').querySelectorAll('.a-price-whole')) | |
| .map(x => Number(x.innerHTML.replace(',', ''))) | |
| .reduce((s, x) => s + x, 0) | |
| ; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment