Created
December 26, 2023 03:22
-
-
Save dylan-chong/a6ee667dd1ebdcc48b4d2546a8180776 to your computer and use it in GitHub Desktop.
Get HTML table data out into tsv
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
console.log(Array.from(document.querySelectorAll('tr')).map(tr => Array.from(tr.getElementsByTagName('td')).map(td => td.innerText).join('\t')).join('\n')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment