Last active
April 29, 2020 08:57
-
-
Save limitedeternity/46dcc98efd6aa3330487a234c14200d4 to your computer and use it in GitHub Desktop.
One-liner to extract data from https://eljob.ru/test/*
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
console.log(JSON.stringify(((arr1, arr2) => arr1.map((k, i) => [k, arr2[i]]))(Array.from(document.querySelectorAll(".item.active > pre.title")).map(x => x.innerText), Array.from(document.querySelectorAll(".item.active")).map(el => Array.from(el.querySelectorAll(".title.correct")).map(x => x.innerText))), null, 4)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment