Created
June 23, 2020 13:11
-
-
Save eviltester/5fb355076c11c9eed8ef0a56a96971f7 to your computer and use it in GitHub Desktop.
some example page scraping examples and output to console using JavaScript
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
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