Created
May 13, 2019 06:58
-
-
Save nrm176/773bc083232b4f749f7a7683e153ac97 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Array.from(document.querySelectorAll('div.m-block.newpresSearchResults tr')).map((e) => { | |
return Array.from(e.querySelectorAll('li a')).map((e) => { | |
var obj = {} | |
obj[e.textContent] = e.href; | |
return obj | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment