Created
September 28, 2023 02:55
-
-
Save mendelgusmao/acddc3b4b79c2390fc20a147a3343749 to your computer and use it in GitHub Desktop.
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
let table = [...document.querySelectorAll('table[width="550"] > tbody')][1]; | |
let items = [...table.querySelectorAll("tr")].map( | |
tr => [...tr.querySelectorAll("td")].map( | |
td => /good/.test(td.querySelector("img")?.src) || td.innerText || false | |
) | |
).map( | |
it => [it.slice(0, 2), it.slice(3, 5)] | |
) | |
.flat() | |
.filter(it => it.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment