Array.from(document.querySelectorAll('div#header_v tr')).map((e) => {
return Array.from(e.querySelectorAll('td')).map((e) => {
return e.textContent
})
}).filter((e, idx) => {
return e.length === 4
}).filter((e) => {
return e[1].length === 7 && e[2] != ""
}).map((e) => {
return {hs9: e[1]+e[2], desc: e[3].trim()}
})
Created
July 27, 2020 08:50
-
-
Save nrm176/a41e77ea59a532b5615940e6918b21c1 to your computer and use it in GitHub Desktop.
Author
nrm176
commented
Jul 27, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment