Skip to content

Instantly share code, notes, and snippets.

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 eviltester/5fb355076c11c9eed8ef0a56a96971f7 to your computer and use it in GitHub Desktop.
Save eviltester/5fb355076c11c9eed8ef0a56a96971f7 to your computer and use it in GitHub Desktop.
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