Created
December 21, 2020 12:28
-
-
Save PechenkiUA/3cb3d445d0c21022ed838dfcf849d93b to your computer and use it in GitHub Desktop.
Parse edbo help home page
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
listMethod = document.querySelector('.help-page-table'); | |
var str = []; | |
listMethod.querySelectorAll(' tr').forEach((index) => { | |
let row = []; | |
let td = index.querySelectorAll('td').forEach((index)=>{ | |
var str = index.textContent.replace(/[\n\t' ']/g,'') | |
row.push({str}) | |
}); | |
str.push(row) | |
}) | |
var lent = 0; | |
str.forEach((index)=>{ | |
index.forEach((index)=>{ | |
if(index.str.length > lent){ | |
lent = index.str.length; | |
} | |
}) | |
}) | |
console.log(str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment