Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
some example page scraping examples and output to console using JavaScript
document.querySelectorAll("tbody tr td[style*='15px']").forEach(function(item, index){console.log(item.innerText)})
document.querySelectorAll("tbody tr td[style*='15px']").forEach(function(item, index){console.log("<option value='" + item.innerText + "'>" + item.innerText + "</option>")})
document.querySelectorAll("tbody tr td[style*='15px']").forEach(function(item, index){console.log("\"" + item.innerText + "\", ")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment