Skip to content

Instantly share code, notes, and snippets.

@filiptronicek
Created January 22, 2021 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filiptronicek/7dc867f036248bd824e2076b9a9ce8fa to your computer and use it in GitHub Desktop.
Save filiptronicek/7dc867f036248bd824e2076b9a9ce8fa to your computer and use it in GitHub Desktop.
Get all smileys from W3Schools
const nodes = document.querySelectorAll("html body div#belowtopnav.w3-main.w3-light-grey div.w3-row.w3-white div#main.w3-col.l10.m12 div.w3-responsive table.w3-table-all.charset-tryit tbody tr td:first-child")
const emojis = [];
for (const node of nodes) {
emojis.push(node.innerText)
}
console.log(JSON.stringify(emojis))
https://www.w3schools.com/charsets/ref_emoji_smileys.asp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment